Expand my Community achievements bar.

SOLVED

Amount field with dollar symbol?

Avatar

Level 8

Hello

I have a AMOUNT field on my_form. Because of good compatibility/data transfer i have defined it as a DECIMAL FIELD 12,3.

Data transfer is btwn my_form and back end system SAP / Oracle. Fine.

But, user want to have the below requirement:

Say, for example, user entered 10000 dollars, once user EXITs that field, adobe will make it formatting (bcz its defined as DECIMAL field) as 10,000. Fine

But, users want to see it as $10,000 (If its USA) if its Europe Euro / local currency symbol as prefix.

Pls. let me know how can achieve my requirement (is it Pattern related or JavaScript will do it)?

1 Accepted Solution

Avatar

Correct answer by
Level 10

On the object palette select the display pattern (click the little down arrow on the left of the button)

Patterns1.jpg

Then select num.currency()

Patterns.PNG

View solution in original post

3 Replies

Avatar

Level 10

Hi,

A display pattern will do it, try num.currency{}.

Bruce

Avatar

Level 8

Thank you.

Pls. let me know where shuld i put this code - num.currency{}

I know there is a PATTERN button on the object pallette, but not sure the

exact spot to put the suggested code - num.currency{}

Rgards.

Avatar

Correct answer by
Level 10

On the object palette select the display pattern (click the little down arrow on the left of the button)

Patterns1.jpg

Then select num.currency()

Patterns.PNG