Copy link to clipboard
Copied
Hello,
I've written a script to lock fields then compose an email with the document as an attachment. Works perfectly on PC but only the lock function works on Acrobat Reader for Android. Is there any way to get this code to work on mobile or is it simply not supported? Are there any workarounds? Please help before I finish pulling out my hair!
for (var i = 0; i < this.numFields; i++) {
var fname = this.getNthFieldName(i);
this.getField(fname).readonly = true; // makes all fields readonly
}
this.mailDoc({
bUI: false,
cTo: this.getField("customer email").value ,
cCc: "xxx@xxx.com",
cSubject: "REPORT: " + this.getField("customer name").value + "_" + this.getField("job date").value + "_" + this.getField("ID").value,
cMsg: "Greetings,\n\n" + "Please find attached \n\n" + "Regards,",
});
Copy link to clipboard
Copied
Hi Brevwitty,
Sorry for the delay in response.
The Adobe Acrobat Reader for mobile has some limitations. There is limited support for the javascript on the mobile application.
Please refer to the following link for more details. JavaScript APIs and Forms — Enterprise Guide for Acrobat on Mobile Devices
Hope that helps.
Let us know if you have any questions.
Regards,
Meenakshi