Automatically filling in response / hard coding reply based on previous question | XM Community
Skip to main content

Hello!

Looking at two questions, some of the respondents of the first question don’t need to see the second question. For those respondents, I would like to automatically fill in the response to the second question in the backend and for them to skip the question. How do I automatically fill in the response for these respondents?

I have tried looking at branching in the survey flow but then I can only fill embedded data. Also creating fields in the data editor doesn’t seem to help here.

Does anyone have any idea how to best approach this?

Thanks much!

Hello @EvaZw

Here's a suggestion: Add your 'Second Question' and set up logic as 'if - first question - Choice - is selected'. Also, add an embedded variable in the survey flow after the question blocks, setting its value as the choice selected in Q1. Then, duplicate the same question but change the logic to 'Not Selected'. Here, 'Choice' refers to the condition you want the respondent to select so that they cannot see the Second Question.

In the survey flow after the question block, add another embedded variable (e.g., Q2_Answer). Set its value as the embedded variable you added previously (this will capture the answer of Q1), and then add the other question (Q2 with the logic set as 'Not Selected'). In your dashboard, you'll need to utilize this embedded variable as the answer.

This setup ensures that the answer from Q1 is captured in the embedded variable Q2_Answer, and based on whether Q1 was selected or not, Q2 will be shown accordingly.

Let me know if this helps.

 


Thank you, @Sachin Nandikol ! :)


Leave a Reply