Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
SOLVED

Radio Button Setting the Display Value of Numeric Field

Avatar

Level 4

I have a Radio Button with two items, if the first button is selected then the Numeric Field should display as a dollar value ($x,xxx.xx) but if the second button is selected the the Numeric Field should display as general numbers (x,xxx) with no decimal.

Any assistance would be greatly appreciated.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

You can change the display pattern at runtime, but it requires a bit of scripting.

There is an example here: http://assure.ly/hVcqlj, if you have a look at the radio buttons on page 2. There is script in the click event that should help you.

Hope that helps,

Niall

Assure Dynamics

View solution in original post

0 Replies

Avatar

Correct answer by
Level 10

Hi,

You can change the display pattern at runtime, but it requires a bit of scripting.

There is an example here: http://assure.ly/hVcqlj, if you have a look at the radio buttons on page 2. There is script in the click event that should help you.

Hope that helps,

Niall

Assure Dynamics

Avatar

Level 4

Thank you so very much as you already know it worked perfectly.

Thanks again.