Show/Hide field of selectbox aem 6.3 | Community
Skip to main content
Level 2
Sep 23, 2017 5:25 AM UTC
Solved

Show/Hide field of selectbox aem 6.3

Show/Hide field: Oke, but one field required = true. when select hide it, click submit error valid required field is not blank

Please help me!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
edubey
edubeyAccepted solution
Level 10
Sep 25, 2017 6:13 AM UTC

In case you are referring to OOTB show/hide feature for fields, I don't there is an option to avoid this.

This is the file which contains logic, you can try to modify it

/libs/cq/gui/components/authoring/dialog/dropdownshowhide/clientlibs/dropdownshowhide/js/dropdownshowhide.js

Probably you need to remove the required validation for the fields which are hidden in a particular state

Note: By modify I mean, overlay this file in /apps as no changes should be performed under /libs

Thanks

4 replies

m_naveed
New Participant
Jun 20, 2018 9:27 PM UTC

In case, someone stumbles at this post and is still wondering how to exactly skip required field validation for hidden fields, can look at my blog post about it.

AEM Touch UI required field validation that works with show/hide of dialog field

Translate
Level 2
Sep 25, 2017 6:34 AM UTC

thank you !  it working !

Translate
edubey
edubeyAccepted solution
Level 10
Sep 25, 2017 6:13 AM UTC

In case you are referring to OOTB show/hide feature for fields, I don't there is an option to avoid this.

This is the file which contains logic, you can try to modify it

/libs/cq/gui/components/authoring/dialog/dropdownshowhide/clientlibs/dropdownshowhide/js/dropdownshowhide.js

Probably you need to remove the required validation for the fields which are hidden in a particular state

Note: By modify I mean, overlay this file in /apps as no changes should be performed under /libs

Thanks

Translate
VeenaVikraman
New Participant
Sep 25, 2017 2:01 AM UTC

is this a question ?? can u frame that little better ?

Translate