on 03-21-2011 10:50 AM
Hi,
I have an iForm which contains a signature and the following JavaScript:
var oSOM = this.somExpression; // Returns the full SOM expression i.e. xfa[0].form[0].form1[0]...
var truncSOM = oSOM.substring(15); // Truncating 'xfa[0].form[0]' from SOM to get acroforms name of the field.
var oState = event.target.getField(truncSOM).signatureValidate(); // Get the current field's signed state.
I have entered a messageBox operation to print oState, but it's not reached.
Wen I open the form with Adobe Reader in order to sign it, it shows the following error message:
"5:XFA:InteractiveFormCustomerRequirementFulfillmentRequest[0]:bdyMain[0]:frmSign[0]:Signature[0]:initialize event.target.getField (truncSOM).signatureValidate is not a function"
I already tried to adapt the coding in the following way:
var a = event.target.getField("InteractiveFormCustomerRequirementFulfillmentRequest[0].bdyMain[0].frmSign[0].Signature[0]");
var status = a.signatureValidate();
But also in this case a messageBox to print the status is not reached.
Does anybody have an idea, what could be the problem?
Thanks and regards,
Alexandra
When I remove the brackets at the end, it seems to work.
So "signatureValidate" instead of "signatureValidate()".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.