How to toggle a button border on and off?
I am trying to create a pdf where the user can select a box (see below). When the user clicks on the box, a thick black border will appear around the selection.
I know this can be done using a transparent button and javascript but I don't know what script to use. I've tried to find another example on the forums but can only find script for buttons that create a solid fill when clicked, not a border.
The button also needs to toggle, so the border can be added and removed if the user changed their mind.
I know this has to be a fairly simple code (I'm guessing that's why I can't find a forum question on it), but I don't know javascript so I can't write it up. I know how to make the button and where the script goes.....is someone able to help me out?


