Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Validate A Signature

$
0
0

There are a number of threads on this subject of Validation Signature, however I haven't figured out where I am making a mistake on this validation script from researching them. I wish to validate that the document has been signed in the signature field before allowing a button to be visible for submission. I am using Microsoft XP + LiveCycle ES2 Version 9.0  + Acrobat Pro X 10.1.4

 

 

SignatureValidate.JPG

 

 

var oState = xfa.resolveNode("form1[0].SignatureField1[0]").signatureValidate();

if (oState != 4)

{

xfa.host.messageBox("The document has not been signed or the validity of the signature can not be ascertained.");

}

 

else

{

form1.Button2.presence = "visible"

};

 

 

After signing the document the console gives a result of:

GeneralError: Operation failed.

XFAObject.signatureValidate:1:XFA:form1[0]:SignatureField1[0]:postSign

Invalid property get operation; field doesn't have property 'signatureValidate'

 

Testing in the console for a value of oState by highlighting the variable oState:

oState is not defined

1:Console:Exec

ReferenceError: oState is not defined

1:Console:Exec

undefined

 

Where is this validation process going wrong? Thanks for your help.


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>