Possible to use different custom CSS based on contact embedded data? | XM Community
Skip to main content
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?
@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