I have 2 check boxes on my acrobat form. I want to do some javascript on the submit button to ensure that the user has selected at lease one of the check boxes. Right now i have the following code:
if (h.isBoxChecked(0) && g.isBoxChecked(0))
which checks to see if both of the check boxes are checked. What I want to know is how to do is to change the line of code to read:
if (h.isBoxChecked=no && g.isBoxChecked=no)
alert the user to select a checkbox
How would i change my original code?? Thanks for all the help!
if (h.isBoxChecked(0) && g.isBoxChecked(0))
which checks to see if both of the check boxes are checked. What I want to know is how to do is to change the line of code to read:
if (h.isBoxChecked=no && g.isBoxChecked=no)
alert the user to select a checkbox
How would i change my original code?? Thanks for all the help!