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
BedrockMission!

Learn More

View all

Sign in to view all badges

Form validation for hidden fields

Avatar

Avatar
Validate 1
Level 2
hitesh_m
Level 2

Likes

3 likes

Total Posts

40 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Validate 1
Level 2
hitesh_m
Level 2

Likes

3 likes

Total Posts

40 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
hitesh_m
Level 2

10-04-2016

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 ??

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 2
urs_h_
Level 2

Likes

5 likes

Total Posts

42 posts

Correct Reply

6 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile

Avatar
Validate 1
Level 2
urs_h_
Level 2

Likes

5 likes

Total Posts

42 posts

Correct Reply

6 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile
urs_h_
Level 2

15-04-2016

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/fo... may help you.

Regards,

Urs

Answers (0)