Skip to main content
Kirstie_Olah
Level 2
Oct 16, 2020 2:55 AM UTC
Question

How to hide table rows in an email when the token is empty

Does anyone know how to hide a row in a table when the value in the data is zero/empty.

I need to hide the tokens when the field value is blank so that the table resizes. Can anyone help with this?

Many thanks in advance.

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

5 replies

SanfordWhiteman
User Group Leader
User Group Leader
Oct 16, 2020 5:31 AM UTC

This is only possible if you're outputting all or part of the table from Velocity.

 

If you are, then it's as simple as

#if( !$lead.YourFieldName.isEmpty() ) <tr><td>This entire table row will only be included if the field has a value</td></tr> #end

 

Translate
Kirstie_Olah
Level 2
Oct 18, 2020 11:24 PM UTC

Thank you. 

Translate