How to check if a form has been signed | Adobe Higher Education
Skip to main content
Level 7
May 13, 2009
Répondu

How to check if a form has been signed

I have a workflow which initially checks if the document has been signed or not. However, my functionality doesn't seem to work.

We are using self signed digital signatures to sign PDFs. I would like to know what would be the best way to check if a form has been signed  ?

Thank you in advance.

Aditya

Ce sujet a été fermé aux réponses.
Meilleure réponse par

Aditya

I think I may have a solution...

1)  Add a hidden field to store a flag value

2)  Set it's default value to "Not signed" (this way, if the user manually attaches the form with out signing the falg is already set, indicating the signature is missing)

3)  On the "Change" event of the Signature field, add the following JavaScript

var oState = event.target.getField("form1[0].#subform[0].SignatureField1[0]").signatureInfo().status; // Get the current field's signed state.
if (oState == 0) {
    flagField.rawValue = "Not signed";
} else {
    flagField.rawValue = "signed";
}

The above script changes the flag field value to "signed" once the blank signature field is signed (because the Change event is fired).  If the user clears the signature field, the "Change" event is fired again and the flag field value is set back to "Not signed"

4)  Have your workflow process parse the data looking for the flag field value of "signed" or "Not signed" and have the process take the appropriate action based on the flag value.

Regards

Steve

16 commentaires

Aditya_S_Auteur
Level 7
May 14, 2009

Steve - The issue is the user is submitting the form by email. I already have included a "submit by email" button which checks the status of the signature and attaches the pdf when successful. The downside to this is that they can save the form and attach it manually.

That's why I would like the workflow to check if the form has been signed. Is there a way to trigger an event in the form on the server side ? This way I can check the status of the signature field.

Aditya

Réponse
May 14, 2009

Aditya

I think I may have a solution...

1)  Add a hidden field to store a flag value

2)  Set it's default value to "Not signed" (this way, if the user manually attaches the form with out signing the falg is already set, indicating the signature is missing)

3)  On the "Change" event of the Signature field, add the following JavaScript

var oState = event.target.getField("form1[0].#subform[0].SignatureField1[0]").signatureInfo().status; // Get the current field's signed state.
if (oState == 0) {
    flagField.rawValue = "Not signed";
} else {
    flagField.rawValue = "signed";
}

The above script changes the flag field value to "signed" once the blank signature field is signed (because the Change event is fired).  If the user clears the signature field, the "Change" event is fired again and the flag field value is set back to "Not signed"

4)  Have your workflow process parse the data looking for the flag field value of "signed" or "Not signed" and have the process take the appropriate action based on the flag value.

Regards

Steve

Aditya_S_Auteur
Level 7
May 14, 2009

Genius !! Genius !! Genius !!

Will this event break the Signature ? Is there a way to prevent it ?

I have been looking for this solution over six months now. I really can't thank you enough.

Aditya

November 30, 2016

Hello,

I have tried one solution for validating signature if it is signed or not, and it worked fine at my end.

Take a textbox control(TextField1) and set invisible. Set this textbox in "Lock fields after signing" for the signature field.

So it will lock(readonly) the textbox if signature field is signed. It will set unlock(open) the textbox if you have not signed or clear the signature.

Now you can check the access property of TextField1. like: if(TextField1.access=="open"), it means signature field is not signed and you can show the message to sign the document.

I had two signature fields in one page and did the same for each signature field. it is working fine.

Regards,

Manoj

November 20, 2017

How know if a document is signed with Delphi?
I've AcroPDF ...
Which property must read?

September 11, 2019

Hi,

Need help on adobe form scenario as i have not worked before.

  1. Follow up action will be configured after digital signature is successfully applied to send the signed pdf to ALL path RECEIVED folder.

is this scenario possible, could you please help

August 28, 2021

This is old but to put this out in the ether because I was looking for a solution and found the answer after testing. To save time and not to have invisible fields. The signature box will return a value of <<dict>> so you can just check to see the the signature form returns this value when you check it. If not it's not signed. Well it has worked for me so far fine.