Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Is there a way to cancel the the signature form the postSign event?

Avatar

Level 1

I need to cancel the signature and reset it so that the end-user can try to sign it again if the signer can not be verified. preSign is too early, but I can't seem to find a way to cancel the event in postSign. cancelAction only works in preSign.

Thanks,

Rich

3 Replies

Avatar

Former Community Member

When you click in a signature field the flow of events is:

Pre_sign event fires

User gets signature dialog and signs

Post Sign event fires

There is no means to programmatically remove a signature so your only option to stop the signing is on the PreSign event. After that the user woudl have to right click on the signtaure and choose Clear Signature.

Hope that helps

Paul

Avatar

Level 5

If you write a cancel preSign event shouldn't that stop the postSign event from firing? In my limited experience I can't find a way to stop the script I entered under postSign from firing even if the preSign gets cancelled. For example I have this preSign script on the signature box.

if (form1.Page3.Author.Reviewed.Admin.rawValue == null || " ")

{

xfa.event.cancelAction = 1

xfa.host.messageBox("You did not select your name on the dropdown list located below.");

}

else

{};

I had to enter this same code in the postSign script because the preSign wouldn't stop the postSign from executting, even when a dropdown list wasn't value was selected as is required in the preSign.

Avatar

Level 5

xfa.event.cancelAction = 1;

This property applies only to the following scripting events: prePrint, preSubmit, preExecute, preOpen, and preSign.

http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=001046.html

Should be:

form1.Page3.Author.Reviewed.Admin.rawValue == null || form1.Page3.Author.Reviewed.Admin.rawValue == " "