Mass Reset to Visibility of all Image Fields
Hi,
I am currently working on a large form, with a lot of images. Like, A LOT of images (200 give or take). In the form, these image's states of visibility are changed by a different checkbox with a bit of javascript, and either the images are "hidden" or "hidden but printable". However, when I reset the form, the images visibility's are not reset. This leaves the whole form so that the checkbox's states and the images visibility's aren't aligned anymore (IE a box will become unchecked after a reset, but because the code on the checkbox doesn't run, the image doesn't switch its state of visibility).
I am trying to figure out a fast way to reset all of the image visibility's to "hidden but printable" once the reset button is hit. I am not able to put every name of every image into an array, because of sheer volume (I have several different forms like this.)
Does anybody have any ideas?
(I have had a few ideas on how to do this but don't know how to execute them)
- Attach the same javascript to every image that tells it to reset its own visibility in the case of a form reset
- Setup an array on the reset button that automatically takes every image in the pdf (minus a certain few which I could write as exceptions in the script), and sets its visibility on mouseUp
-Somehow create a seperate layer on the form that is composed of all of my image fields, and change the visibility of the layer
Thanks so much for any help, this problem has been eating away at me for a while now!
