How to dynamically display content based on a token value being present? | Community
Skip to main content
December 5, 2014
Question

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

  • December 5, 2014
  • 3 replies
  • 1084 views
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.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Josh_Hill13
Level 10
December 5, 2014
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.
December 5, 2014
Thanks Josh. Where can I learn about email scripting?
Scott_McKeighe2
Level 4
December 5, 2014
Jason, here's a link from the Marketo help section about Velocity scripting for email. Hopefully that helps point you in the right direction!