Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Making FieldA required when user changes value of FieldB

Avatar

Former Community Member
Is this possible.



When the user is filling out the form, the required state of fields needs to change based on input gathered from the user.



FieldA - TextField

FieldB - DDList - Values Yes and No



FieldA should be required if the user sets FieldB to Yes, but it should be required if they set the value to No.
1 Reply

Avatar

Former Community Member
I figured out how to change this, however I have one obstacle yet. The highlighting does not automatically refresh? I have to manually uncheck the required fields checkbox and reselectit for the highlighting to update.