Because I wanted specific subject line when the form is submitted via email, I used the following script attached to the click event of a regular button:
var vCompany = Company.rawValue;
var vDevice = txtDeviceName.rawValue;
event.target.submitForm({cURL:"mailto:myemail@company.com?subject="+vCompany +" "+vDevice+" CDQ submittal &body=Submitting the attached Customer Design Questionnaire.",cSubmitAs:"PDF",cCharset:"utf-8"});
This works correctly, but the user can submit the form without all the required fields filled out. What script do I add to the regular button to check the required fields? I know the Submit e-mail button does this automatically, but as far as I know, the subject line cannot be dynamic when using this library button.
Thanks,
Mark