I need to write a script in a form to make a field required in a previous field had data entered? I am really new to Acrobat and have not done scripting for a LONG time! Thanks for your help!
I need to write a script in a form to make a field required in a previous field had data entered? I am really new to Acrobat and have not done scripting for a LONG time! Thanks for your help!
var v = this.getField("myTextField").value;
Once you have the "value" of the field you can script any number of operations against it.
if(v==""||v==null)
app.alert("Please enter a value!");
Be sure to check out the DevNet site at [url=http://www.adobe.com/devnet]http://www.adobe.com/devnet[/url]. Specifically, search for "Developing Acrobat Applications Using JavaScript" for a complete reference.