These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

how to cancel an event in presubmit?

JGarn23
Registered: Feb 17 2010
Posts: 35

Hi,
Can someone tell me how to stop a submit event being carried out. I want to run some code in the presubmit event, and only proceed if the result is good.

Thanks.

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
You can use the cancelAction property to do this.
It works for proOpen, proSubmit, preSign and prePrint events.

// code snippet to cancel the current actionxfa.event.cancelAction = 1;

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs