Copy link to clipboard
Copied
I have created a Form with a submit button that sends to different locations based on the result of 1 drop down menu created using Adobe Acrobat Pro DC. The problem I have is that those who will be using this form only have Adobe Reader XI, and when sent to them the submit button fails to work. I have java scripted the button so not sure whether this is where the problem lies. Please assist.
Press Ctrl+J to open the JS Console. I bet there will be an error regarding
the "subject" variable. Change its name to something else.
On 6 December 2017 at 11:21, jasonk16545182 <forums_noreply@adobe.com>
Copy link to clipboard
Copied
How does it fail, exactly? What happens when they click it? Is there an error message of some kind?
And what code did you use?
Copy link to clipboard
Copied
Nothing happens when this click the Submit Button. No errors or anything. It just fails to open the email window.
var Dropdown1 = this.getField("Dropdown1").value;
console.println("Dropdown1:="+Dropdown1);
var email = "";
var subject = "";
var CC = "";
var body = "Please see attached for SRI.";
if (Dropdown1 == "North - Constructive")
{
email = "Specific Email Addresses";
subject = "Constructive SRI";
CC = "Specific Email Addresses";
}
else if (Dropdown1 == "South - Electrical")
{
email = "Specific Email Addresses";
subject = "Electrical SRI";
CC = "Specific Email Addresses";
}
else
{
email = "Specific Email Addresses";
}
if (email != "")
{
this.submitForm({
cURL: "mailto:" + email + "?CC=" + CC + "&body=" + body + "&subject=" + subject,
cSubmitAs: "PDF"
});
}
Copy link to clipboard
Copied
Press Ctrl+J to open the JS Console. I bet there will be an error regarding
the "subject" variable. Change its name to something else.
On 6 December 2017 at 11:21, jasonk16545182 <forums_noreply@adobe.com>
Copy link to clipboard
Copied
Looked into this and changed subject to subject1. Thanks