How can I update the preview mode UI after setting question choice values? | XM Community
Skip to main content

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.

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


Leave a Reply