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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

preSubmit / cancelAction


Level 3
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,

0 Replies