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

Javascript action on button not working in reader mobile

Guest
Jul 09, 2022 Jul 09, 2022

Copy link to clipboard

Copied

I have a proceedures checklist using checkboxes, most of which are required. At the end of the list i placed a button to verify that all required checkboxes were checked. It works great on PC but nothing happens on android. I am SO NEW to java and its awe-inspiring powers and would love to get this simple feature working...I'm sure I'm just missing something blatantly obvious to experts...

 

The button triggers on Mouse Up

This is the script to run:

var emptyFields = [];
for (var i=0; i<this.numFields; i++) {
var f= this.getField(this.getNthFieldName(i));
if (f.type!="button" && f.required ) {
if (f.valueAsString==f.defaultValue) emptyFields.push(f.name);
}
}
if (emptyFields.length>0) {
app.alert("Please complete the following pre-trip checks:\n\n" + emptyFields.join("\n"));
}

TOPICS
PDF forms

Views

357

Translate

Translate

Report

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
1 ACCEPTED SOLUTION
Adobe Employee ,
Jul 11, 2022 Jul 11, 2022

Copy link to clipboard

Copied

LATEST

Hello Jesse,

 

I hope you are doing well. I am sorry for the trouble.

 

Running javascript on Acrobat Reader is currently available only on the desktop version and not on mobile devices.

 

I suggest you fill the feedback form so that it reaches to our developer team for them to look into it and implement it in the upcoming updates.

Link: Share your feedback on Acrobat DC (uservoice.com)

 

Thanks,

Souvik.

View solution in original post

Votes

Translate

Translate

Report

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
Adobe Employee ,
Jul 11, 2022 Jul 11, 2022

Copy link to clipboard

Copied

LATEST

Hello Jesse,

 

I hope you are doing well. I am sorry for the trouble.

 

Running javascript on Acrobat Reader is currently available only on the desktop version and not on mobile devices.

 

I suggest you fill the feedback form so that it reaches to our developer team for them to look into it and implement it in the upcoming updates.

Link: Share your feedback on Acrobat DC (uservoice.com)

 

Thanks,

Souvik.

Votes

Translate

Translate

Report

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