Skip to main content
Level 3
Dec 15, 2021 4:11 PM UTC
Solved

Add Global Variable with color drop down

Hello I've looked around at a few post and don't see anything that outlines clearly my ask.

 

I'd like to add a hex code color drop down to the global variables tab in the email builder. This would allow user to select their brand color at the global level instead of needing to update it in every module used in the template. 

 

Any tips on the best way to code this into the template?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jo_Pitts1
Jo_Pitts1Accepted solution
Community Advisor
Dec 15, 2021 7:18 PM UTC

@jroscoe-3 ,

if you're looking for something that is locked down to brand colours rather than a colour picker, try this solution that I dreamed up a while ago:

https://nation.marketo.com/t5/product-discussions/drop-down-titles-within-email-template-variables/m-p/285100/highlight/true#M166403

 

I've subsequently seen others using the same approach (whether they came up with it independently or from my post I don't know).  It is an approach that is certainly solid.

 

Cheers

Jo

4 replies

SanfordWhiteman
User Group Leader
User Group Leader
Dec 15, 2021 4:29 PM UTC

How is this different from a mktoColor variable?

Translate
Jo_Pitts1
Community Advisor
Jo_Pitts1Community AdvisorAccepted solution
Community Advisor
Dec 15, 2021 7:18 PM UTC

@jroscoe-3 ,

if you're looking for something that is locked down to brand colours rather than a colour picker, try this solution that I dreamed up a while ago:

https://nation.marketo.com/t5/product-discussions/drop-down-titles-within-email-template-variables/m-p/285100/highlight/true#M166403

 

I've subsequently seen others using the same approach (whether they came up with it independently or from my post I don't know).  It is an approach that is certainly solid.

 

Cheers

Jo

Translate
Jroscoe-3Author
Level 3
Dec 16, 2021 5:59 PM UTC

Thanks Jo! That was actually a post I looked at and will use it. Had to put this piece with another to figure it out for myself on creating an additional global variable. 

Translate
Jo_Pitts1
Community Advisor
Community Advisor
Dec 16, 2021 7:21 PM UTC

@jroscoe-3 ,

nice work mate.  Good luck with it.

Translate