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

Conditional validation based on the focused element

Avatar

Avatar
Boost 1
Level 1
prabhakars95313
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
prabhakars95313
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
prabhakars95313
Level 1

24-03-2015


Hi ,

I have a scenario where a section of PDF is mandatory. Once the user types data into a field within this section the entire section needs to be mandatory. So the validation is

* If any one field is populated and the user tries to move the focus on any control outside this section validation error to be thrown

was trying to write this in the exit event for all the controls within this section, however I was able to confirm if the control is going outside this section or not.

Many thanks

PS

Accepted Solutions (0)

Answers (4)

Answers (4)

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

270 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

270 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

26-03-2015

Hi,

The subform for you section has an exit event as well, could you use that?  I haven't tried as I would think it was bad usability to dictate the order a user fills the form in, but I guess there's always an exception to the rule.

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,077 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,077 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

24-03-2015

Hi there,

I don't think there is an easy way to prevent the user from changing section as you would probably need a validation script on the enter event of every other fields in the form to validate if any other section if fully filled..

An easy way out of this would be hiding any other sections until this section is fully filled.

Hope this help!

Avatar

Avatar
Boost 1
Level 1
prabhakars95313
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
prabhakars95313
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
prabhakars95313
Level 1

31-03-2015

Hi,

Will try this out and see if this works.

Regards

PS

Avatar

Avatar
Boost 1
Level 1
prabhakars95313
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
prabhakars95313
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
prabhakars95313
Level 1

31-03-2015

Thanks for your reply. As an approach this is a good alternative, however may not be able to implement this due to the requirements.

Regards

PS