Javascript to turn fields ON and OFF
In Acrobat Pro DC I have a form with many fields. I would like to make a button that when clicked will turn OFF 20 of those fields. When I click the button again it will turn ON those 20 fields. Currently I am able to do that with 2 buttons using javascript. One button is the OFF button and the other button is the ON button. I no longer want to use 2 buttons to do this. Is it possible to use just 1 button to turn the 20 fields OFF and ON by clicking the one button once or twice.