Expand my Community achievements bar.

Need help with currency formatting

Avatar

Level 4

I use the accessiblity tool tip as a means to populate both numeric and text fields with data entry tips for users. By using initialize, enter, and exit events, the fields change from the tool tip in light grey italics to black, normal font after form user input. Several of the fields are currency fields and i have used patterns to format numeric input to $x,xxx.xx format. However, in testing the form, the user input is plain numeric, not currency.

On the exit event, i have the following code that results in user input in the field being shown in normal font, black type. I am guessing i need some format code after the font.posture = "normal" line.

if (this.isNull){

this.fontColor = "153,153,153";

this.font.posture = "italic";

this.caption.font.fill.color.value = "0,0,0";

this.caption.font.posture = "normal";

}

Any help would be appreciated, as i do not know how to code this.

0 Replies