Dollar sign and space before token | Community
Skip to main content
Level 1
March 10, 2022
Solved

Dollar sign and space before token

  • March 10, 2022
  • 1 reply
  • 1530 views

Trying to figure out why when I try to use a dollar sign to show a donation amount on an email, that it adds a space between it and the token I'm using {{lead.Donation Amount}}. Deleting the space breaks the token. I tried some of the things suggested in other posts, but it wasn't working. Disclaimer! My knowledge of HTML is basic at best. So any help you can provide without using developer speak would help! 😂

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 Darshil_Shah1

I've used velocity to display the amount with $ in past:

 

${esc.d}${lead.Donation Amount}

 

You may create and add the velocity token to email as per above, don't forget to check mark the Donation Amount field under the Person Object from the right tree of the email script token.

 

Alternatively, there's also a way to include a zero width space b/w $ and the person token:

$​{{lead.Donation Amount}} //add this in the HTML section of the email content block

 

1 reply

Darshil_Shah1
Community Advisor and Adobe Champion
Darshil_Shah1Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
March 10, 2022

I've used velocity to display the amount with $ in past:

 

${esc.d}${lead.Donation Amount}

 

You may create and add the velocity token to email as per above, don't forget to check mark the Donation Amount field under the Person Object from the right tree of the email script token.

 

Alternatively, there's also a way to include a zero width space b/w $ and the person token:

$​{{lead.Donation Amount}} //add this in the HTML section of the email content block

 

Jo_Pitts1
Community Advisor
Community Advisor
March 10, 2022

Yep - I imagine putting a $ right in front of a Marketo token could confuse Marketo into thinking it was a malformed Velocity token

(i.e. ${{lead.donationAmount}} looks a lot like ${velocityDonationAmount}, hence the need to use @darshil_shah1's approach.