Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

How Can I Get A Dollar Value to Display Correctly?

$
0
0

How do I get the following to display the ($) sign in front of the value and two decimal places past the decimal point?

Note that I have set the Text Field Properties>Format: Select format category: Number

                                                                                        Separator Style: 2

                                                                                        Currency Symbol: Dollar($)

 

[this.getField("Minimum-Redemption-Amount").value has a value of 25000]

 

app.alert("The dollar amount is " + this.getField("Minimum-Redemption-Amount").value);

 

displays---> The dollar amount is 25000


Viewing all articles
Browse latest Browse all 12130

Trending Articles