Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Cancel preSign

Avatar

Level 5

The signature field on my pdf form continues to fire even when the person signing selects "Cancel" on the  dialogue box first to appear. All code in the preSign/postSign events fire properly if the user wants to sign the document. However if the user doesn't want to sign I need to prevent the postSign event from firing. Any ideas?

Signature Dialogue.jpg

Using:

Livecycle ES 3

Adobe 11 or XI

I have researched and found the following discussions but have yet to find an answer.

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

http://forums.adobe.com/message/5118501

http://forums.adobe.com/message/3852614#3852614#3852614#3852614

http://forums.adobe.com/thread/787110

http://forums.adobe.com/message/3442843#3442843

3 Replies

Avatar

Level 5

Would inserting an "if else" statement prevent the preSign or postSign code from firing if the user selects "Cancel" on the dialogue box. Technically I beleive the "preSign" event has already fired when the user reaches this dialogue box. Something like

form1.Page1.Document.SigSubform.SignatureField1::preSign - (JavaScript, client)

if (xfa.event.cancelAction == true)

{

xfa.event.cancelAction == true

}

else

{

//preSign or postSign javascirpt

such as presence, trust function saves etc

}

Avatar

Level 5

xfa.event.cancelAction = 1

Looking for a way to link this cancelAction with the first signature dialogue box that pops up. If the user selects "cancel" I don't want the postSign event to fire. In the javascript reference below is "event" to be replaced by "postSign"? meaning xfa.postSign.cancelAction = 1;

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

Avatar

Level 5

With some help from others and some digging up the past I came back across my old answer, and some others.

var oSigInfo = event.target.getField(“form1[0].Letter[0].LetterContent[0].signatureData[0].signatureField[0]”).signatureValidate();

if (oSigInfo.status == 0)

          {

          //Code to fire if signature process is canceled, usually blank

          }

else

{//Code to fire if process is NOT canceled

}

The [0] instances are important. Even with one signature field on the form I still had to use the brackets to get the script to work.

If you have trouble you might try removing the word ".status" after the if statement oSigInfo.status. My script didn't work until I removed this status.

http://forums.adobe.com/thread/694165

http://forums.adobe.com/message/4921882http://