Custom Question | XM Community
Skip to main content
Hi:



I'm trying to make a question which has two parts. The first one is general, but the second part should only appear if a previous response is given. Note that I'm not trying to pipe a previous response to the new questions. So far, I believe this has something to do with the html editor.



Thanks!
How about adding a display logic? : "Display the second question only if the response is given".
I'm sorry, maybe I have not been clear enough. What I meant is that a single question has two sentences. I want the second sentence to be displayed if a previous question has certain value.



For example:



Question:



1st sentence: Thinking about your previous answer, how do you feel about this?

2nd sentence: Give your answer based on how you felt in the last week.




The second sentence should only appear if a certain value is selected in the previous question. Otherwise, the question should only have the 1st sentence.
You'll have to use JavaScript. Put the second sentence in a hidden `<span>` tag with a class. Pipe the answer to the previous question into the JS, then show the span if it meets the criteria.

Leave a Reply