I have a contact property that is a hex color. Specifically partner_primary_color and want to use/print this in the html of an email as a background color in a “column”. I’ve tried using a <div style=“background-color: {{ partner_primary_color }}”> in a template that clearly did not work. And I can’t seem to use smart modules on a backround of a module in the drag and drop editor either. Any solutions?
Hi @CalvinUlery,
Interesting! The syntax for properties is {{ object.internalpropertylabel }}, could you confirm you’re following that syntax? e.g. {{ contact.partner_primary_color }}
Best regards
Yes, I have tried that as well, both {{ contact.partner_primary_color }} and {{ Contact.partner_primary_color }}. Neither is printing the color in the style for some reason. Does it seem like that should work?
Trying to make emails “branded” for a bunch of different partners. Will be super cool feature if I can get it to work!
@CalvinUlery how exactly are you testing? Are you previewing the email for a contact which has a value in the partner primary color?
Ha! I just got it to work. I think I had the div in the wrong place in the template. Now, if only I could accomplish this with drag and drop/smart modules vs a template?
Possible to create an html module that I can insert into drag and drop templates? Best of both worlds?