How to hide table rows in an email when the token is empty | Community
Skip to main content
Kirstie_Olah
New Participant
October 16, 2020
Question

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

  • October 16, 2020
  • 1 reply
  • 4018 views

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.

1 reply

SanfordWhiteman
New Participant
October 16, 2020

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

 

Kirstie_Olah
New Participant
October 18, 2020

Thank you.