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
Views
Replies
Total Likes
Unfortunately this is an old problem. See previous discussions: http://forums.adobe.com/message/3852614#3852614#3852614
Views
Replies
Total Likes
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!
Paul
Views
Replies
Total Likes
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)
btnHiddenEmailSubmit.execEvent("click");
else
<show validation err message>
hope this is what you are looking for... have fun!
Regards,
Luigi D'Amico
8 BIT PLATOON
design develop deploy
Views
Replies
Total Likes