Still having issues customizing submit button

Avatar

Avatar
Level 1
D3rp
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
D3rp
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
D3rp
Level 1

08-09-2016

I've been trying to make a submit button that will submit the PDF form to email with fields from the form.  So reading up on other posts for the past week, I made a standard button and added this into the script editor, in the show: click, changed the language to Java, and Run at: Client.  However, when I try to Preview the PDF and click on the button, nothing happens at all.  I've never done scripting before and I've read every result that came up in google but I'm failing pretty bad at trying to make this work.

var Project = this.getField("Project").value;

var Project1 = this.getField("Project_1").value;

var Project_Manager = this.getField("Project_Manager").value;

this.mailDoc({

cTo: "test@test.com",

cSubject: "CADD REQUEST" + "Project" + "Project_1" + "Project_Manager",

cMsg: "test"

});

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Level 1
D3rp
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
D3rp
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
D3rp
Level 1

13-09-2016

Thanks for the reply.  I've tried downloading that macro but I come across an error that the site cannot be reached when I click on https://files.acrobat.com/preview/dc9776d6-a03f-4b11-bcb5-21059819b8a7

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

13-09-2016

Your script is written in a JavaScript version only AcroForms support. In LiveCylce Designer the syntax is different.

Here's a macro, that helps you to create such scripts:  LiveCycle Blog: MailTo Macher Makro V1.0//MailTo Maker Macro V1.0