Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Override User Entry


Former Community Member

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


Any help is greatly appreciated!

0 Replies