Javascrip not working on Adobe iPad/mobile app
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";
