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

SOLVED

Validate Signature field is signed

Jodi1725
Level 4
Level 4

I have given up.  I have checked all the different discussions on this and I can't get it to work!  Here is my code.

What am I doing wrong !  Please help

var oDoc = event.target;

var oState = event.target.getField("Main.DeptHeadApproval").signatureValidate();  

{if (oState == 0)

    {messagetext=messagetext + "\tDirector/Department Head Approval\n";

    errorcount = errorcount + 1;}   

if (errorcount == 0)

{OfficeUse.presence = "visible";

oDoc.mailDoc({

        bUI: true,

        cTo: "EnterpriseRisk@uillinois.edu",

        cCc: UserEmail.rawValue + ";" + DeptHeadEmail.rawValue,

        cSubject: "JCAD Risk User Set Up",

        cMsg: "",

        });}

       

       

else {xfa.host.messageBox("Missing Required Field(s):\n"+ messagetext);}}

1 Accepted Solution
CJAllen-HDQGtR
Correct answer by
Level 2
Level 2

getField's argument has to be the complete path to the signature field, including explicit instance indices, e.g. "form1[0].page1[0].Main[0].DeptHeadApproval[0]".

View solution in original post

1 Reply
CJAllen-HDQGtR
Correct answer by
Level 2
Level 2

getField's argument has to be the complete path to the signature field, including explicit instance indices, e.g. "form1[0].page1[0].Main[0].DeptHeadApproval[0]".

View solution in original post