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

preSubmit / cancelAction

Avatar

Avatar
Validate 1
Level 3
Steffen_Kuhnt
Level 3

Likes

2 likes

Total Posts

63 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Validate 1
Level 3
Steffen_Kuhnt
Level 3

Likes

2 likes

Total Posts

63 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
Steffen_Kuhnt
Level 3

25-08-2008

Hello everyone,



I have run into a problem which I think should be quite easy to solve: I'm developing a form to be used in a process. This form contains some script logic which is dealing with things like required fields in a customized way.



I want to execute that script stuff before the form is being submitted while overriding Acrobat's built-in validation of required fields.



I've been trying to execute my function in the preSubmit event of the form, setting xfa.event.cancelAction = true; if it fails.



The problem is, that the built-in stuff executes as well. It seems like the cancelAction part fails, because the client doesn't seem to care whatever value you are trying to set.



Does anybody know what I'm doing wrong, or is there any (better) way around this issue??



Thanks a million,



Steffen.