Need Script to Continue After Clicking OK on Alert Box
My form has multiple required fields. In order to ensure the form has been filled out completely, the submit button on the form has a javascript action on it to check the contents of the required fields, and if necessary, return the user to that part of the form to enter the required information.
Just before the form is mailed, I am checking for a value of "Vendor_Guidelines" in field 18. If that field's value is "Vendor_Guidelines", I would like to pop up an alert reminding the user to include the guidelines when submitting their request. They should be able to click "OK" on the alert, and continue with submitting their form.
Below is the expert of the script on the submit button. Once the alert displays, I really don't really need to set focus back to f18, I just need the user to be able to click OK and allow the script to continue so the form can be submitted.
Thanks in advance for any ideas on this.
else if (f18.value == "Vendor_Guidelines")
{
app.alert ('You checked the Vendor/Buyer Guidelines checkbox on page one of this form. Attach the guidelines to this request email.');
f18.setFocus();
}
else
{
// Email PDF.
var m = this.getField("ad_desc");
var mysubject = m.value + " - Request Form Submission";
this.mailDoc(true, "requestforms@ducjvh.com", "", "", mysubject);
}
}
