Field Validation in another submit button?
Hi I have submit form button which validates all the required fields when submitting the overall form. (Im using acrobat pro 11)
However there are parts of the form which need to be sent to line manager for approval.
So i have another button that states "Submit for manager approval" i want this button to validate individual fields that i can input to make sure they are not empty before they send to the line manager for approval.
I've got some JavaScipt on this button which opens up an email pop up so they can enter their Line manager address:
What can i add to the following to make sure individuals fields are not empty before they can submit this:
the field names are Name, Employee Number and date.
JavaScript:
// Set the subject and body text for the email message
var cSubLine = "SPIC Form Approval required"
var cBody = "This form requires your review and approval"
// Send the entire PDF as a file attachment on an email
this.mailDoc({bUI: true, cSubject: cSubLine, cMsg: cBody});
Much appreciated.
Kuium
