AnsweredAssumed Answered

Weird Issue with Velocity Scripting

Question asked by Hobie Thompson on Nov 6, 2017
Latest reply on Nov 6, 2017 by Sanford Whiteman

I have a Velocity script that works in one campaign, but not in another one. I'm racking my brain trying to figure out what the heck is happening here.  There are two different Velocity scripts that are included in the email I am trying to send out. The way the script is supposed to work is off of a data value, lead.SecurityQuizScore. Below, see a screenshot of a test I just did where the Security Quiz Score value is properly computed (meaning my scoring campaign is functioning) to '2':

 

score.PNG

Here is the part of the HTML code for the email that is going out that contains my Velocity tokens:

 

html-email.PNG

 

And here are the two Velocity scripts themselves, contained in the Program in which the email is located:

 

PercentageLgl:

percentagelgl.PNG

ScriptLgl:

scriptLgl.PNG

 

Unless I'm missing something, in the above example, the email should load with $imgUrl as the '66percent-250px.png' image and with $testing as 'High'. However, in the email I receive, both of these are set to their fallbacks.

 

Any idea what is going on here? What am I missing?

Outcomes