Conditional statement in text email distribution survey | XM Community
Skip to main content
Question

Conditional statement in text email distribution survey

  • February 20, 2024
  • 1 reply
  • 109 views

Forum|alt.badge.img

Hi everyone, 

I would like to send a survey via email but differentiating the email text depending on whether the respondent was in the treatment or in the control group. This piece of information is stored in the embedded data field “Treatment”.  I would like to do something like:

if Treatment == 1{

<email text for treated>

}

elif Treatment == 0{

<email text for control>

}

Do you know a way to do so? 

 

Thank you in advance for your help!

 

Best, 

Marco

1 reply

Sachin Nandikol
QPN Level 6 ●●●●●●
Forum|alt.badge.img+44
  • QPN Level 6 ●●●●●●
  • 530 replies
  • February 20, 2024

Hello,

I suggest setting up a workflow as follows:

1. Start by adding an "Experience Id Change" task and select "When contact is created or updated.” For more info use this link - https://www.qualtrics.com/support/survey-platform/actions-page/events/experience-id-change-event/
2. Next, add a logic that checks if "Treatment is Equal to 1" and save your logic.
3. Then, add a distribution task and configure it with the desired template.
4. Repeat the same process for the second setup, but this time change the logic to "Treatment is Equal to 2" and adjust the template accordingly.

This setup will automate the distribution of the survey via email whenever a contact is created in your directory.

Let me know if this helps.