Solved
Conditional display in script token
- April 23, 2021
- 1 reply
- 3953 views
Dear community!
I'm trying to finalize a velocity script token and could not get my #if script to work. I'm trying to display a sentence if lead field called lead.mktohiddenadminstring1 has a value of "21Q1-incentive-form", otherwise, leave it blank. Can anyone help trouble shoot where I did wrong? The program-level velocity token name is "incentive-form". Also, is there a way I can control the formatting of this sentence, such as font, size...
#if( ${lead.mktohidden}.equals("21Q2-abc-form") )
#set($abc_form.equals ("Thank you for submitting your brand for consideration for our ABC Campaign. "))
#else
#set($abc_form.equals (""))
#endTHANKS!