Auto-select a drill-down question based on previous drill-down answer | XM Community
Skip to main content

Hi everyone!

I have the next problem. Based on the previous answer of a drill-down question (“Colegio”).
 

I want that the next drill-down question autoselect the same “Colegio” as the previous one.

 


I’m new in JS, but i want to do this because i need to save time to who answer the survey, there’s a lot of school to select and this question has to be asked 5 times.

Thanks,

@SebaVargas I would exepect this to work without JavaScript by just working with default choices. At least default choices should be compatible with drill down questions.


I agree that you shouldn’t need JS for this -- Default Choices should work. With this feature, you can pre-populate the response value of a question based on a previous response or embedded data field. If Colegio has one value throughout the entire survey, you can also saved it as an embedded data element in your survey flow and have the Default Choices logic reference that variable instead (it’s sometimes easier to configure survey logic by referencing embedded data).

 

You can also use Display Logic to hide the Colegio questions in the rest of the survey. For example, you’d want to display the drill down statement if Colegio was empty (i.e., if there was already a response, it wouldn’t be empty, so the drill down statement will NOT display).

 

You can also use Piped Text to show the value for Colegio in future questions. Keep in mind that you’ll need a page break between the original question and future questions for this to work properly.

 

Carry Forward is also something that came to mind, but it’s not always compatible with certain question types; this thread discusses a workaround that you may want to check out: 

 

Hope that helps! :)

 

-Erin


Leave a Reply