Possible to use different custom CSS based on contact embedded data? | XM Community
Solved

Possible to use different custom CSS based on contact embedded data?

  • 29 October 2019
  • 1 reply
  • 50 views

Userlevel 3
Badge +3
Background: There are some instances where we use custom CSS to remove the logo from our dynamic theme and add in a different logo. Historically this process has only been done on certain surveys and all the contacts received the survey with the edited look and feel. Now we have a survey where we want some contacts to have our dynamic theme and some to have these unique themes with the alternate logos. This will be an ongoing survey that is sent out when triggered.

Is there any way to trigger the CSS to changed based on contact information?
icon

Best answer by KoalaTricks 30 October 2019, 00:45

View original

1 reply

Userlevel 4
Badge +3
@chasemcl Have you tried:

1. Associating the stylesheet with the contact list as a field or via URL, e.g.:
|Name|Email|stylesheet|
|--|--|--|
|A|a@a.com|old|
|b|b@b.com|new|

or survey.com?stylesheet=old

2. Referencing the stylesheet via embedded data based on the "stylesheet" field (${e://Field/stylesheet} or whatever it is for contact list fields) in the header? Like below but the field is for the stylesheet instead of email:

!

Leave a Reply