Changing button appearance when selected
I have a button which I would like to use as a switch (on/off). When "on" it should show a "red" image, when "off" show "grey" image (really a check sign from Istock). When the switch is off, and selected, I have a script to set a field to "Y", and to "" if the field is already "Y" effectively turning it off.
How do I get the image to change from "grey" to "red"?
So far I created the button using the inspector and chose the grapic "image".