Acrobat Professional 9.2.0
I am trying to display a message when the user fails to select a checkbox. The code is working, but it is doing the opposite of what I want. It only displays the message when the checkbox is selected.
I have a group of 3 checkboxes named payment_option and I have set the export values to 1, 2, and 3. I guess I don't understand how the isBoxChecked works.
Here is the code...
if (this.getField("payment_option").isBoxChecked(0))
{
app.alert("You have not chosen a payment option. Please choose a payment option before submitting this form.", 3, 0, "Form Completion Instructions");
}
I appreciate any help!
if (this.getField("payment_option").isBoxChecked(0)==false)
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com