Highlighted

Sending document as email attachment on mobile (android)

New Here ,
Feb 28, 2019

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

});

TOPICS
Android

Views

193

Likes

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

Sending document as email attachment on mobile (android)

New Here ,
Feb 28, 2019

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

});

TOPICS
Android

Views

194

Likes

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
Feb 28, 2019 0
Adobe Employee ,
Mar 05, 2019

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

Likes

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
Reply
Loading...
Mar 05, 2019 0