SOLVED

Hide unused token fields

Go to solution
Tsangto
Level 1

Hide unused token fields

Hi, 

I've tried to find a solution for this before posting, but couldn't find an appropriate solution. 

What I'm trying to do is to essentially create a list in an email that's driven by an excel sheet.  

 

For example, in each email, there's 6 token fields that needs to be populated with info. However, not all token fields will be used for all versions of the email. It can go from 1-6. My question is, is it possible to hide the fields that are not populated with info, so the spacing of the email will look correct. 

 

  1. <Parameters 1>, <Parameters 1a>
  2. <Parameters 2>, <Parameters 2a>
  3. <Parameters 3>, <Parameters 3a>
  4. <Parameters 4>, <Parameters 4a>
  5. <Parameters 5>, <Parameters 5a>
  6. <Parameters 6>, <Parameters 6a>
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Hide unused token fields

Quiet references won't quite cut it because they quiet null values, not empty values.

 

You want my #displayIfFilled logic: https://nation.marketo.com/t5/product-blogs/streamline-your-script-tokens-with-a-displayiffilled-vel...

View solution in original post

2 REPLIES 2
Oz_Platero
Level 6

Re: Hide unused token fields

Hello @Tsangto ,

 

One way to do it is via velocity scripting + quiet reference (no value no output). Albeit, is has a small learning curb for basic features.

 

Email scripting documentation around quiet reference

 

SanfordWhiteman
Level 10 - Community Moderator

Re: Hide unused token fields

Quiet references won't quite cut it because they quiet null values, not empty values.

 

You want my #displayIfFilled logic: https://nation.marketo.com/t5/product-blogs/streamline-your-script-tokens-with-a-displayiffilled-vel...