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

Make a signature change the color of a submit button

Geckoz100
Level 5
Level 5

Hello,

I'm trying to make a Submit button turn green after a digital signature is applied, but no luck.  I have tried entering the script below in the form:ready, layout:ready and docready events of the button, as well as in the"form1".  Of course, when I put the scripts in the "form1" object, "this" gets changed to the full button name.  Nothing works.  Any suggestions?  Thanks.


var oState = event.target.getField("form1[0].Page2[0].SupervisorReview[0].SecondBlock[0].SupervisorSignature[0]").signatureValidate()


if (oState == "1")


  {


  this.fillColor = "0,128,0"; //green fill


  this.caption.font.fill.color.value = "255,255,255"; //white font


  }


0 Replies