How can I update the preview mode UI after setting question choice values? | XM Community
Solved

How can I update the preview mode UI after setting question choice values?

  • 3 July 2023
  • 1 reply
  • 35 views

Userlevel 3
Badge +4

I’m setting question choice values in questions using the Question JavaScript API with this.setChoiceAnswerValue(). The fake value I’m writing ATM is proper for sure (checked with this.getChoices(); beforehand). As soon as I’ve set a question value I’d like to update the survey preview mode UI accordingly. How can I do this? Is there some Qualtrics API which allows me to do so?

As workaround I already tried to change the UI via JavaScript code. However this is not possible cause Qualtrics XM uses iframe in the preview mode I cannot mutate.

icon

Best answer by thinwybk 3 July 2023, 17:04

View original

1 reply

Userlevel 3
Badge +4

For a question type “choice” this.setChoiceValue("1", true); did the job.

Leave a Reply