Use embedded data to store answer choice count. Use ED for display logic | XM Community
Skip to main content

Use embedded data to store answer choice count. Use ED for display logic.

 

Example:

Q1 = Rate this product A (0-10)

Q2 = Rate this product B (0-10)

Embedded data = Average of Q1 and Q2

10 embedded data are created for 10 products.

 

In the next question there are these 10 answer choices example Product A, Product B, etc. (where display logic for each item is embedded data >5)

User has to select 3 items from the shown items. 

 

How can I set a display logic for this question to make sure that this question is shown only if there are 3 items minimum with embedded data >5 

@TomG Could you please have a look.


In the addOnPageSubmit() function on the first page, loop through the answers to the 10 questions and count how many are greater than 5, and set the count as an embedded variable.  Then use that count in display logic for the next question.


Leave a Reply