Auto-populating a question based on a previous question before termination | XM Community
Skip to main content

I have a Yes/No question and if the respondent selected No, I would like to auto-populate the next question with a None before I terminate. How is this possible in Javascript?

Is the next question text entry? Is it on the same page or a different page?


The second question is a list of retailers with a None and it's on a separate page.


Pipe the answer to the Yes/No question into the JS of your second question. Assuming "None" is the last choice in a multi-select MC:
if("{pipe of selected choice goes here}"=="No") {
jQuery("#"+this.quesitonId+" input[type=checkbox]:last").prop("checked",true);
this.clickNextButton();
}


Leave a Reply