Hi There,
I'm a new user, so be gentle!
I have created a form with a check box required to indicate the recipient accepts conditions of business. However, I can't seem to make this check box mandatory before submission i.e. the user can still submit the form even if they have not "checked" the box.
I think I need to use Java Script but don't have a clue where to start, please help.
M
So yes, you need to use a script for both the checking and the submission.
Here's an example for a check box named "MyCheck". Place this code in a "Run a javaScript" action on the submit button. Remove all other actions.
if(this.getField("MyCheck").isBoxChecked(0))
this.submitForm(...);
else
app.alert("You must read and accept terms before submitting");
You can read about the "submitForm" fucntion here.
http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/submitting_data/
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script