Show/Hide field of selectbox aem 6.3 | Community
Skip to main content
Level 2
September 23, 2017
Solved

Show/Hide field of selectbox aem 6.3

  • September 23, 2017
  • 4 replies
  • 3140 views

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.
Best answer by edubey

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

VeenaVikraman
Community Advisor
Community Advisor
September 25, 2017

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

edubey
edubeyAccepted solution
Level 10
September 25, 2017

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

Level 2
September 25, 2017

thank you !  it working !

m_naveed
June 20, 2018

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