Answered
Java script for color changing button
I'm trying to get code for a button on a pdf form I'm making. I would like the button to be white then turn green, yellow, red then cycle back through. Please any help would be appreciated!
I'm trying to get code for a button on a pdf form I'm making. I would like the button to be white then turn green, yellow, red then cycle back through. Please any help would be appreciated!
Use this:
if(color.equal (event.target.fillColor, color.white))
event.target.fillColor = color.green;
else if(color.equal (event.target.fillColor, color.green))
event.target.fillColor = color.yellow;
else if(color.equal (event.target.fillColor, color.yellow))
event.target.fillColor = color.red;
else if(color.equal (event.target.fillColor, color.red))
event.target.fillColor = color.white;Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.