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

Avatar

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Geckoz100
Level 3

06-07-2015

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


  }


Accepted Solutions (0)

Answers (0)