Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Signature validation using signatureValidate

CN_Dafolo
Level 1
Level 1

Hi,

We have designed a form where we use signatureValidate to check the validity of a signature. It has been working fine until recently where we all of a sudden get this error when calling the function:

          TypeError: oField.signatureValidate is not a function

This is the code that we use when validating the signature:

          function validateSignatur(){

               var iResultat;

               var sBesked = "";

              

               var felt1 = form1.side1.sub_Underskrift.fld_Underskrift.somExpression;

               var oField = event.target.getField(felt1);

               var iStatus = oField.signatureValidate();

               var oSigInfo = oField.signatureInfo();

               sBesked = oSigInfo.statusText;

               iResultat = iStatus;

               return iResultat;

          }

As I said earlier this has worked fine for some time now, but recently is has stopped working. Is the signatureValidate function no longer supported or what could the problem be??

/Caspar

1 Reply
CJAllen-HDQGtR
Level 2
Level 2

I think you need to make felt1 a string. I've tried using somExpression as the argument to getField as well and it just doesn't work. Try something like this:

var felt1 = "form1[0].side1[0].sub_Underskrift[0].fld_Underskrift[0]";

Hope this helps.

Christopher Allen