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

xfa.event.cancelAction cancels all subsequent actions


Level 2

I have created an expenses form which has a number of mandatory and optional fields.   To ensure no expenses are submitted with a value of 0, I have added a check which sets xfa.event.cancelAction = 1 on the presubmit event of my email submit button.  This works, but the problem is that it seems to cancel all subsequent actions too.  I have tried adding xfa.event.cancelAction = 0; in the postsubmit event, but this does not work.

Does anyone have any ideas?

Thanks, Paul

3 Replies


Level 2

Many thanks - I was aware of that thread, which also said that it was fixed in 10.1 - which I do not think it has as I am using 11.  In any case I was hopingthat someone had come up with a workaround!



Level 3

Hi Paul,

Put an extra visible button which will be your submit button.

This "extra" button will do validations and all pre-submission checks.

Once all checks have passed, then execute a "hidden" email submit button.

Code Example:

var formPassedValidations = false;

<do all your validations here - eg: check if values are not zero>

if (formPassedValidations == true)



     <show validation err message>

hope this is what you are looking for... have fun!


Luigi D'Amico


design develop deploy