app.alert not allowing responses on iPad
I am trying to get the following code to run on a form on an iPad. with Adobe Reader, it will at least prompt with the app alert message, but only display OK as a response vs. the yes and no options.
I could live with a version that removes the question and just prompts for email address when the button is pressed. Any way to make it work with native iPad Adobe reader?
Here is code:
var sendForm = app.alert("You clicked the submit button\n\n" + "Are you sure you want to submit the form?",2,2,"Submit Validation");
var message = "Attached please find a copy of the notes.";
var date = this.getField("Date27_af_date").value;
var subject = "Weekly Meeting for" + " Week of: " + date;
if (sendForm == 4) {
sendWhere = app.response({cMsg:"Where do you want to email this form?",cTitle:"Where should the form be sent",cLabel:"Email Address:"});
this.mailDoc({bUI:true, cTo:sendWhere, cSubject:subject, cMsg:message});
}
else
app.alert("Please continue with the form");
