Form validation for hidden fields | Community
Skip to main content
hitesh_m
Level 3
April 10, 2016
Solved

Form validation for hidden fields

  • April 10, 2016
  • 1 reply
  • 1478 views

Hi,

I have a form with multiple child panels like -

MainPanel

Name, MaritalStatus and Province

ChildPanel_one (Only visible if MaritalStatus is true in MainPanel)

Spouse Name, Spouse DOB, Spouse Salary 

I have set a validation expression for ChildPanel fields. 

My problem is, even if the ChildPanel is not visible- AEM form validates the  childPanel fields and gives me the validation error.

Right now to avoid this, for every child panel field I have to set validationDisable=true in initialization expression and make it false when MartialStatus is true (Value commit script).  

This is becoming a pain since I have so many fields and so many child panels (Child panels inside child panels as well). 

Any help ??

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 urs_h_

Hi 

perhaps my answer to this question in the forum http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/aem-forms.topic.html/forum__zmj1-hi_weve_beenusi.html may help you.

Regards,

Urs

1 reply

urs_h_Accepted solution
Level 3
April 15, 2016