Presenting questions based on randomization done in Javascript? | XM Community
Skip to main content

Hey all,
I'm trying to figure out how to present questions in my survey based on a randomisation process I'm running in javascript. So for instance, say I have already determined which subset of questions are going to be shown in my survey using javascript and I now have an array of question IDs. I want to then use that array to determine which questions will be shown. Conceptually I'm thinking something like "if this question ID is in the array, display this question".
Any help would be appreciated!

One of the way is to create an embedded data and store the array value in string format in it. Now use is contains in display for each question.


Leave a Reply