First off, thank you to anyone who takes the time to read this and attempt to help me.
I made a PDF form with check boxes. I used a mouse up Java Script so that when the check box is checked aka "Yes" the fill and font are a specific color:
I then made a Clear Form button which when clicked does clear all the check boxes but it leaves the form boxes with the fill color of when the box is checked instead of going back to unfilled. The only way to then clear the form box fill is to check the box and then uncheck. I have over 100 check boxes. To clear the check box fill one by one would be a pain in the arse. Any thoughts or suggestions?
Copy link to clipboard
Resetting a form only affects the field values. The colors or any other property you choose to set in a script has to be reset with a script. Just add a script action to the Clear button.
You can use exactly the same code as you used to set the color originally:
this.getField("Check Box5").fillColor = color.transparent;