Conditional Background? | XM Community
Solved

Conditional Background?

  • 20 August 2019
  • 1 reply
  • 21 views

Badge
Hi,
Is it possible to make the survey background conditional/personal?
e.g. based on a tag in the url. Simple example if there's survey.qualtrics.com/jfe/form/SV_123?industry=automotive vs survey.qualtrics.com/jfe/form/SV_123?industry=chemicals a different background should be shown.
icon

Best answer by KoalaTricks 29 August 2019, 18:38

View original

1 reply

Userlevel 4
Badge +3
@joyca_v

You can use Embedded Data in CSS and HTML, so depending on how you're implementing the background:

1. In your survey logic, make branches mapping URL params to images, e.g.:
- "If industry=automotive, set Embedded Data industry_background=car.jpeg"
- "If industry=chemicals, set Embedded Data industry_background=chemicals.jpeg"
2. In your survey CSS or HTML, use ```${e://Field/industry_background}``` in place of image links, e.g., ```<img src=${e://Field/industry_background}```. Then, when someone enters the survey from a link containing industry=whatever, the img src will be populated based on your survey logic which maps the industries to keywords.

Leave a Reply