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?
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!
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.
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!
8 BIT PLATOON
design develop deploy