Clear form button not working on IPad
I have a button that clears all information on the form and gives the user a warning before they can clear the form. The button works on the Macbook Pro however it does not work on the iPad. The picture below is the message that I'm getting on the iPad when I press the "Clear Form" button. The version of Acbrobat Reader on the iPad is 21.09.01.

Below is the code that I'm using on the Mouse Down action. I don't necessarily need to offer the user to save the file, however I would like to give the user a warning message before they commit to clearing the form.
// A MouseUp action
var nButton1 = app.alert({
cTitle: "HOW TO SAVE THIS DOCUMENT AND CLEAR THE FORM",
cMsg: "STOP! DO NOT CLEAR THIS FORM UNLESS YOU SAVE IT FIRST. \r\rIf you have not saved this document yet go ahead and click NO to save now, otherwise click YES to clear this form. \r\rWould you like to proceed and clear this form now?",
nIcon: 4, nType: 2
});
//if user clicks on YES button it will alert the user that it will reset and ask YES or NO to proceed
if ( nButton1 == 4 ) {
// clear and reset all the fields objects in this document
this.resetForm();
} else {
//if user clicks NO button it will alert user with instructions on how to save document
var nButton2 = app.alert({
cTitle: "SAVE THIS FORM",
cMsg: "This document will Save now.\r\rSave this form under Last Name, First Name - Date",
nIcon: 4, nType: 1
});
if ( nButton2 == 1) {
app.execMenuItem("SaveAs");
}
}
