Is there a way to show/hide html in an email based on dynamic content? | Community
Skip to main content
Mark_Kalamaridi
New Participant
April 1, 2020
Solved

Is there a way to show/hide html in an email based on dynamic content?

  • April 1, 2020
  • 1 reply
  • 2399 views

I am creating an html email with a few rows of table cells containing an image and a piece of dynamic content (text).
Is there a way to hide one or more cells if the dynamic content is blank to avoid displaying empty cells?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Is it truly Dynamic Content™, as in explicitly segmented content? That isn't going to be suppressible: if it's inside a <td> then the <td> itself will exist even if it's empty.

 

If you use Velocity to output the table (or just the <td>) however, every row and cell are under your control. Some advanced techniques here: https://nation.marketo.com/t5/Product-Blogs/Alternating-table-row-colors-in-Velocity/ba-p/243564

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
April 1, 2020

Is it truly Dynamic Content™, as in explicitly segmented content? That isn't going to be suppressible: if it's inside a <td> then the <td> itself will exist even if it's empty.

 

If you use Velocity to output the table (or just the <td>) however, every row and cell are under your control. Some advanced techniques here: https://nation.marketo.com/t5/Product-Blogs/Alternating-table-row-colors-in-Velocity/ba-p/243564