Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Click Event Script Stopped Working. Please Help!

RudyLou36
Level 2
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
Ratnesh_Ranjan
Correct answer by
Level 3
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
Ratnesh_Ranjan
Correct answer by
Level 3
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