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

Override User Entry

Avatar

Level 1

I have a form where the user has to choose an item form a drop down menu. Some of the drop down menu choices fill another field with a percentage while other choices require the user to enter in their own percentage in the same field. The choice where the percentage is autofilled works initially but if I got to another choice and fill the percentage manually and then go back to the choice that should be autofilled, the percentage doesn't change; It stays the same as whatever I manually entered. How do I override the user entered value and always revert to the autofill.

My code is:

if (DropDownMenu.rawValue == 4) then

  rawValue = .25

 

elseif (DropDownMenu.rawValue == 1) then

          this.rawValue = null

endif

Any help is greatly appreciated!

0 Replies