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

guidebridge.validate()

Avatar

Avatar
Validate 1
Level 1
swapnilg8154307
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
swapnilg8154307
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
swapnilg8154307
Level 1

30-01-2018

guidebridge.validate() to validate multiple fields at dependent on each other at one time

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 25
Level 5
James_R_Green
Level 5

Likes

47 likes

Total Posts

191 posts

Correct Reply

47 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 5
James_R_Green
Level 5

Likes

47 likes

Total Posts

191 posts

Correct Reply

47 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
James_R_Green
Level 5

30-01-2018

Hi,

You can use the guidebridge validate function with SOM expressions to validate individual fields or panels I believe: Adaptive Forms Class: GuideBridge

Perhaps you could group the fields in question into a panel, or validate them in turn based on their SOM expressions?

Answers (1)

Answers (1)

Avatar

Avatar
Boost 5
Level 2
jagjeetthukral
Level 2

Likes

7 likes

Total Posts

36 posts

Correct Reply

4 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 3
View profile

Avatar
Boost 5
Level 2
jagjeetthukral
Level 2

Likes

7 likes

Total Posts

36 posts

Correct Reply

4 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 3
View profile
jagjeetthukral
Level 2

06-02-2018

Hi swapnilg81543075​,

As far as I understand, you might have added validation rule to one of the form fields,but the validation rule uses value of other field for validation. In this case you should use field1.validate(), this will automatically validate field1 against field2.

If you have multiple such field combinations, and are adjacent to each other(to be accomodated inside a panel then wrap them in a panel and use below mentioned rules.

  • If you are doing this from rule editor, you should preferably use panelName.validate(), which will be better and cleaner approach.

  • If you are doing it from some other javascript, you should use guidebridge.validate(eList, //SomExpression to the panel, true) or guidBridge.resolveNode("panelName").validate();

If the fields are not adjacent, use field1.validate();field3.validate();

Thanks,

Jagjeet

AEM Forms Blog