How to reference to the selected choice on the current page that hasn't been submitted yet? | XM Community
Skip to main content

Dear All,
I am trying to reference the text of a selected choice to appear in the following questions that are in the same page.
I have followed the solution from https://www.qualtrics.com/community/discussion/2534/how-to-reference-to-a-selected-choice-on-the-current-page-that-hasnt-been-submitted-yet.
However, it references the Id/recode values of 7/8/9, instead of "per day / per week / per month". I have also tried changing the getChoiceValue to other get commands from https://s.qualtrics.com/WRAPI/QuestionAPI/classes/Qualtrics%20JavaScript%20Question%20API.html. But the result is still the same.
image.pngimage.pngAppended above is the reference code. Appreciate if anyone could help please. Thank you.

You'll have to write that logic yourself. So, something like,
if(result ==8) {
result ="per day";
}else if(result ==9){....}

Read more about if/else statements here.


Many thanks, ahmedA!


Leave a Reply