Email Script $ for tokens | Community
Skip to main content
Paul_Johnson
New Participant
July 28, 2016
Solved

Email Script $ for tokens

  • July 28, 2016
  • 2 replies
  • 2171 views

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}

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Nicholas_Manojl

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>

2 replies

Nicholas_Manojl
Nicholas_ManojlAccepted solution
New Participant
July 28, 2016

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>

July 28, 2016

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

Paul_Johnson
New Participant
July 29, 2016

Sorry Jamie,

What do you mean the right hand tree?

SanfordWhiteman
New Participant
July 29, 2016

Referring to the treeview on the right side of the Email Script Editor, where you choose which objects to pass to the script.