Highlighted

Email Submit JavaScript not opening email client

Explorer ,
Oct 15, 2020

Copy link to clipboard

Copied

Hi,

 

I have an issue with some script that will not work when dynamically 'pulling' email addresses from export values assigned to two drop-down menus that a user can change as desired. The button I have created has the following script as a 'Mouse Up' event;

 

var newDoc = this.extractPages(2,8);
var cToAddr = this.getField("PRIMARY_IRC_ERP").value;
var cCCAddr = this.getField("DEPUTY_IRC_ERP").value;
var cSubLine = "Client Emergency Response Plan Pack - see attached file"
var cBody = "Please download and complete this form according to your role in the ACG."
newDoc.mailDoc({bUI: true, cTo:cToAddr, cCc:cCCAddr, cSubject: cSubLine, cMsg: cBody});
newDoc.closeDoc(true);

 

The above works fine on my PC (with Adobe DC Pro) and does what I intended, but if I use the same form and functions on a colleagues PC (with their own version of Adobe DC Pro installed), the button does nothing....any ideas?. 

 

TOPICS
PDF forms

Views

33

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

Email Submit JavaScript not opening email client

Explorer ,
Oct 15, 2020

Copy link to clipboard

Copied

Hi,

 

I have an issue with some script that will not work when dynamically 'pulling' email addresses from export values assigned to two drop-down menus that a user can change as desired. The button I have created has the following script as a 'Mouse Up' event;

 

var newDoc = this.extractPages(2,8);
var cToAddr = this.getField("PRIMARY_IRC_ERP").value;
var cCCAddr = this.getField("DEPUTY_IRC_ERP").value;
var cSubLine = "Client Emergency Response Plan Pack - see attached file"
var cBody = "Please download and complete this form according to your role in the ACG."
newDoc.mailDoc({bUI: true, cTo:cToAddr, cCc:cCCAddr, cSubject: cSubLine, cMsg: cBody});
newDoc.closeDoc(true);

 

The above works fine on my PC (with Adobe DC Pro) and does what I intended, but if I use the same form and functions on a colleagues PC (with their own version of Adobe DC Pro installed), the button does nothing....any ideas?. 

 

TOPICS
PDF forms

Views

34

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
Oct 15, 2020 0
Most Valuable Participant ,
Oct 15, 2020

Copy link to clipboard

Copied

Are you sure they're opening it in Acrobat, and not Reader, or some other application?

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...
Oct 15, 2020 0
Explorer ,
Oct 22, 2020

Copy link to clipboard

Copied

Hi try67,

 

No.....they are definitely opening using Adobe DC 😉 apologies for the delay in replying.

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...
Oct 22, 2020 0
Explorer ,
Oct 22, 2020

Copy link to clipboard

Copied

P.s. - should add all now resolved....

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...
Oct 22, 2020 0