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

Javascrip not working on Adobe iPad/mobile app

Participant ,
Sep 07, 2023 Sep 07, 2023

Hello,

 

I have written a Javascript code to auto-populate a form on Adobe but it's not working on iPad and mobile Adobe app. 

Any ideas on how I could make it work with Adobe? Maybe another code? I really would like to keep the same PDF reader and not have to move to others. 

 

The codes I used to auto-populate a date field:

var today = this.getField("Date14_af_date.0").valueAsString;
if(today == "") event.value = "";
else{
var thirteenthmonth = util.scand("yyyy/mm/dd", today);
thirteenthmonth.setMonth(thirteenthmonth.getMonth()+13);
event.value = util.printd("yyyy/mm/dd", thirteenthmonth);}

 

and a simple list:

 

var Dropdown12 = this.getField("Dropdown12").valueAsString;
if (Dropdown12=="XXX") event.value = "XXX";

else if (Dropdown12=="XXX") event.value = "XXX";

TOPICS
JavaScript , PDF forms
890
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 ,
Sep 07, 2023 Sep 07, 2023
LATEST

Unfortunately, there's no solution. Almost no scripts will work on the mobile version of Reader.

Try PDF Expert by Readdle, though. It offers limited support for scripts, but much more than what Adobe's apps offer.

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