preSubmit / cancelAction



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,