Re: How to dynamically display content based on a token value being present?

Anonymous
Not applicable

How to dynamically display content based on a token value being present?

How can we dynamically display content if a token has a value? For example, if the company name token has a value (the company name field is populated for that lead) then display the sentence, "how we have helped {{Company Name}} to ...", but if the token doesn't have a value (company name is null for that lead) then the sentence is not displayed? Maybe a nested token? Thanks in advance for your help.
Tags (1)
3 REPLIES 3
Josh_Hill13
Level 10 - Champion Alumni

Re: How to dynamically display content based on a token value being present?

You cannot nest tokens.

You can use Dynamic Content or Scripting (emails) to try this.

While you can leave the Company Name blank by leaving out a default value, you won't be able to control the sentence, it will still be there.

You could have the sentence be a token and use email scripting to control its visibility.
Anonymous
Not applicable

Re: How to dynamically display content based on a token value being present?

Thanks Josh. Where can I learn about email scripting?
Scott_McKeighe2
Level 5

Re: How to dynamically display content based on a token value being present?

Jason, here's a link from the Marketo help section about Velocity scripting for email. Hopefully that helps point you in the right direction!