App Alert Java script
Copy link to clipboard
Copied
Hello,
I am very new to this Java Script stuff so bear with me.
I am attempting to program multi window alerts prior to erasing an entire form. This works perfect on my mac in acrobat but when sending it to acrobat on a mobile device or ipad I get an "[object Object]" message when running the button.
I posted the script below. please advise what I am doing wrong here.
Thanks
//First Alert box after clicking "reset entire form” box//
if(app.alert({
cMsg: "Erase this form?",
cTitle: "Reset Data Log Confirmation",nIcon: 2,nType: 2}) == 4)
//Confirmation Alert box after selecting "yes" on previous alert box//
if( app.alert({
cMsg: "Last Chance\nAll data will be lost",
cTitle: "Reset Data Log Confirmation 2",nIcon: 2,nType: 1}) == 1)
//REST FORM SCRIPT//
{
this.resetForm();
app.alert("Form Successfully Reset", 3);}
Copy link to clipboard
Copied
Scripts are unlikely to work well (or at all) on mobile devices, unfortunately. On an iPad your best chance of having it work is by using PDF Expert by Readdle.

