Skip to main content
Participant
February 13, 2025
Question

app.alert not allowing responses on iPad

  • February 13, 2025
  • 2 replies
  • 168 views

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");

2 replies

JR Boulay
Community Expert
Community Expert
February 13, 2025

[MOVED TO THE ACROBAT READER MOBILE DISCUSSIONS]

Acrobate du PDF, InDesigner et Photoshopographe
Bernd Alheit
Community Expert
Community Expert
February 13, 2025