Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

App Alert Java script

New Here ,
Nov 27, 2022 Nov 27, 2022

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

 

TOPICS
JavaScript
2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 27, 2022 Nov 27, 2022
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines