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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Hidden fields being visible if containing data


Not applicable

I have a shipping form that allows the user to specify local or internationl shipping thru radio buttons. The int. fields are hidden when the form is first opened. If international is selected the address fields change to allow international addresses. How can I save that state of the form so that when it is reopened the international address is visible?

Suggestion: Add some java to the intialize section of the form that checks if there is data in the hidden fields and then turns them on?

Is this the right approach?
1 Reply


Not applicable
Figured it out:

if (AddressIntEField.rawValue !=null) {

AddressIntEField.presence = "visible", relevant="+print";


else {

AddressIntEField.presence = "invisible", relevant="+print";