I have a handful of custom fields I need dollar signs put before in an email I'm sending out. I'm having a hard time making an email script that will put the dollar sign before the number.
The field is below. Any help would be much appreciated!
${lead.invoice1due}
Solved! Go to Solution.
I think you're referring to "escaping", which means that you don't want the "$" to be swallowed by the Velocity engine. In this case, I don't think you need to escape the $ symbol.
But if for some reason this isn't working:
<p>Your next invoice is $${lead.invoice1due}</p>
You could try this:
#set ($d = "$")
<p>Your next invoice is $d${lead.invoice1due}</p>
I think you can just select the field you want from the right hand tree and it will automatically have the dollar sign in from of it
Sorry Jamie,
What do you mean the right hand tree?
Referring to the treeview on the right side of the Email Script Editor, where you choose which objects to pass to the script.
I think you're referring to "escaping", which means that you don't want the "$" to be swallowed by the Velocity engine. In this case, I don't think you need to escape the $ symbol.
But if for some reason this isn't working:
<p>Your next invoice is $${lead.invoice1due}</p>
You could try this:
#set ($d = "$")
<p>Your next invoice is $d${lead.invoice1due}</p>