Skip to main content
Daniela Barros
Known Participant
September 7, 2023
Question

Javascrip not working on Adobe iPad/mobile app

  • September 7, 2023
  • 1 reply
  • 1197 views

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";

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
September 7, 2023

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.