6 Replies Latest reply on Oct 7, 2016 2:41 PM by Sanford Whiteman

    Script Token Currency Default Value not showing

    Sarah Bartash

      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:


      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})


      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?