Quantcast
Channel: ServiceNow Community - Post implementation
Viewing all articles
Browse latest Browse all 108

Formatting this script to show Dollar and Cents $1,000.00

$
0
0

Foremost I am not a java scriptor, so if this client script I wrote looks crazy, it may be crazy, but it works. :) so I feel lucky!
If you wonder why I did the '*1' on the value, is it because they were not adding to a sum without this.

My challenge now is dilemma is the currency value I am displaying. I want to display this with dollars and cents.
The form value of 'TMW_IT_Purchase_request_grandtotal' appears as "1248" and I want it to appear as "$1,248.00".

Would someone be willing to show me what I am missing.

read more


Viewing all articles
Browse latest Browse all 108

Trending Articles