AnsweredAssumed Answered

Script Token Currency Default Value not showing

Question asked by e3456f2772780e809478d0ac44e27db6b7dea616 on Oct 5, 2016
Latest reply on Oct 7, 2016 by sanford.whiteman

1. We have a field called lead.Potential_Contribution_Margin__c that is populated with a number (eg: 12887062). This is actually currency. But it was pulling in as:

1.jpg

2. So to get it to add a $ and a comma and a decimal pt., through some online documentation I found this coding seemed to make that work as a Script Token ( which I called my.My Currency Token ): $number.currency($${lead.Potential_Contribution_Margin__c})

2.jpg

3. However, this broke the Default Value (if the lead.Potential_Contribution_Margin__c didn’t pull anything in. )

This worked when I didn’t have the Script token code: 3.jpg

But this is what it does now:4.jpg

 

Anyone able to help me figure out how to get it coded to enter the Default Value if no number to pull in exists?

Outcomes