Creating a sum using embedded data to create survey display logic. | XM Community
Question

Creating a sum using embedded data to create survey display logic.


Badge +1

Hi,

New user, first time poster!

Hopefully someone can help, I have read the suggested post Using JavaScript with Embedded Data and/or selected choices. | XM Community (qualtrics.com) but I don’t think that is quite what I need.

In my contact files I have two embedded data fields, a quoted value and an actual value and want to use display logic for questions based on outcome for a customer, ( actual => quoted for one question and another branch where actual < quoted). 

Hopefully that makes sense and there is a way to handle this in Qualtrics rather than at source.

Thanks,

Craig


2 replies

Userlevel 4
Badge +7

Hi @Craig Ellery ,

 

Instead of display logic, you can set up branch logic in the survey flow for the 2 conditions.

 

First, add embedded data of “quotevalue” and “actualvalue” from your contacts.

Second, set up your 2-branch condition and have another embedded data “displayvalue” be the result to display.

Finally, piped in the embedded data “displayvalue” in your question.

 

Note:

“quotevalue”, “actualvalue” and “displayvalue” is just variable names, you can use other names.

Survey flow
Question with piped text

 

Badge +1

Hey Chee Heng_SZ

Thank you so much for the recommendation, it gave me a great starting point.

I’ve coded the display values applied branch logic and it is working as desired.

Thanks,

Craig

 

 

Leave a Reply