Conditional Background? | XM Community
Skip to main content
Solved

Conditional Background?

  • August 20, 2019
  • 1 reply
  • 28 views

JVV
Forum|alt.badge.img
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.

Best answer by KoalaTricks

@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.

1 reply

Forum|alt.badge.img+3
  • Level 2 ●●
  • Answer
  • August 29, 2019
@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.