Skip to main content
Solved

Dynamic Content VS Merge Fields


Forum|alt.badge.img+2

I’m new to Klaviyo but no stranger to ESPs.  What I’m trying to figure out is how to create actual dynamic content.  For instance: each contact will be associated with a business, so there is a contact property called business saved with a number 1-20.  I want to create a dynamic block that says:

If contact.business = 1 { show link 1)

If contact.business = 2 { show link 2)

If contact.business = 3 { show link 3) etc…

I don’t want to save the link with each contact… the links may change or they might get 2-3 links per business.  I just want to show a block of text for a certain business.  

 

All i’ve seen so far is how to do merge fields, I want actual dynamic content.  Any help would be greatly appreciated.

 

 

Best answer by retention

Hi @QuickFresh - welcome to the community! 

Glad you were able to find the answer so quickly.  But yes, the Show/Hide Block is definitely one way to do it.  I also wrote a post about use Show/Hide Blocks with Custom Property values here:

Another approach is to write Template code using {% if Person|Lookup:”custom_property” %} in a Text Block which might be preferable if they are just simple text links. You can see @Anna McCarthy’s quick tutorial here:

Hope this helps!

 

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 1 reply
  • July 7, 2022

retention
Partner - Platinum
Forum|alt.badge.img+62
  • 2025 Champion
  • 944 replies
  • Answer
  • July 7, 2022

Hi @QuickFresh - welcome to the community! 

Glad you were able to find the answer so quickly.  But yes, the Show/Hide Block is definitely one way to do it.  I also wrote a post about use Show/Hide Blocks with Custom Property values here:

Another approach is to write Template code using {% if Person|Lookup:”custom_property” %} in a Text Block which might be preferable if they are just simple text links. You can see @Anna McCarthy’s quick tutorial here:

Hope this helps!