How to exact match display question logic | XM Community
Skip to main content

I have a challenge I need help with. I have an embedded data field that can contain combinations of these values - P, P W, U R, U H.

Embedded data field value examples:

P, UH

P W

P, U R

U R, U H

P, P W, U R, U H

My survey has a survey question for the four unique data field values.

Q1 Sat with P

Q2 Sat with P W

Q3 Sat with U R

Q4 Sat with U H

I only want to display the survey question when there is an exact match to a value in the embedded data field.

When I set Q1 to only display when the embedded data field contains P, both Q1 question P and Q2 question P W display.

Will someone please let me know how to input the display question logic so that Q1 question P only displays when P is in the embedded data field?

I tried using quotes and that didn’t work.

Hi @tim ozirsky while adding display logic, try adding one more condition along with the existing one i.e.,  “embedded data field is equal to P” AND “embedded data field is NOT equal to P W”. 

This should work!


That worked.

Thank you very much!


It turns out that the recommendation does NOT work.

When the embedded data = P, P W, U R, U H,
this display logic - If embedded data contains P and does not contain P W  - doesn’t work.
That is Q1 Sat with P does not get displayed, Q2 Sat with P W, Q3 Sat with U R and Q4 Sat with U H are displayed.

I only want to display the survey question when there is an exact match to a value in the embedded data field.

When I set Q1 to only display when the embedded data field contains P, both Q1 question P and Q2 question P W display.

Will someone please let me know how to input the display question logic so that Q1 question P only displays when P is in the embedded data field?

I tried using quotes and that didn’t work.

 


Leave a Reply