How to use display logic for a text entry question? | XM Community
Skip to main content

Hello,
For my study, I have three conditions where participants are randomly assigned to one of the three, and they answer a specific text box question. I achieved this using branch logic.
However, I would like to display a question later on in the study (not directly afterwards) which is dependent upon which condition they are in. Since these are text box questions, I'm confused as to how the display logic works in this scenario. When I choose one of the questions, it asks me to "select choice" but I don't want it to display if they give a certain answer - I want it to display simply if they are in that condition.
Any help is appreciated, thank you!

Hi,
you could use javascript on the text entry question to set a marker in an Embedded Data field. So something like:
Qualtrics.SurveyEngine.addOnload(function()
{
Qualtrics.SurveyEngine.setEmbeddedData( 'displayedQuestion', '1')
});

Later on in the survey you then can use this Embedded Data Field in the Display Logic.


ThesisStudy ,
You can use "is displayed" display logic based on the earlier open end questions:
image.png


TomG
Wow, that was so simple, thank you!

ManfredBM
Thank you as well for that solution!


Leave a Reply