Expand my Community achievements bar.

SOLVED

Click Event Script Stopped Working. Please Help!

Avatar

Level 2

I must have forgotten a step in making an email button that will pull the data from a form field into the subject line of an email and let me create the body of an email.

I am taking a Button and adding a Click event of:

var Mailto = "test@test.com";

var BetreffSubject = Legal_Name.rawValue;

var NachrichtMessage = "This is line 1.\r\rConfidentiality Notice!\rThis is the start of the third line ";

var Mail = "mailto:" + Mailto + "?Subject=Site Report for " + BetreffSubject + "&Body=" + NachrichtMessage ;

event.target.submitForm({

cURL: Mail,

bEmpty: true,

cSubmitAs: "PDF"

});

When I click on the button, nothing happens.  what am I doing wrong?

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi RudyLou36,

Please download the file from https://workspaces.acrobat.com/?d=0n*uLjnmLGX8VlHRCW5n7A and check the click event of "Control email through script" button.

Regards,

Ratnesh

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3

Hi RudyLou36,

Please download the file from https://workspaces.acrobat.com/?d=0n*uLjnmLGX8VlHRCW5n7A and check the click event of "Control email through script" button.

Regards,

Ratnesh