SOLVED

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

Go to solution
Mark_Kalamaridi
Level 2

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

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?

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

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

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

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

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

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