Jump to content

Add $9.00 to an amount in field


Susan

Recommended Posts

Thanks for the reply.

 

For some reason my result is $9 with this rule. The entry in my field is $515.00. The previous rule below resulted in $524. I need it to be $524.00.

 

var price = Field("External_Data::cTotal") // Your field here

return '$' + (StringToNumber(price.replace(/[^\d\.]/g, '')) +9);

Link to comment
Share on other sites

I had an error in the post I deleted. Try this.

 

var price = Field("YourFieldHere")
var price2 = (StringToNumber(price.replace(/[^\d\.]/g, '')) + 9);
return '$' + FormatNumber("#,###.00", price2)

Edited by dreimer
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...