Help with mailDoc()

Community Beginner ,
Apr 15, 2021 Apr 15, 2021

Copy link to clipboard

Copied

Hello all,

 

I am looking for assistance if anyone would be so kind. 

 

I have a dynamic PDF with 20 forms. I also have 20 checkboxes on the main page to display or hide any of the 20 forms. So if a user only wants forms #3, 7, 12 for example they would simply check off those forms. The rest will be hidden. Now I would like to place a button to attach only the visible forms to an email however I do not want the main page (the one with the checkboxes) included in the attachment. I know it is just a matter of showing or hiding the main page however I have tried hiding the main page in the button's click function but it will only hide the page after the email gets populated and the forms are attached despite placing the presence = "hidden" statement at the very top. My code is as follows:

 

main.presence = "hidden";

 

event.target.mailDoc({
bUI: false,
cTo: "blah.com",
cCC: "blahblah.com",
cSubject: "this is the subject",
cMsg: "this is the message"
});

 

I also tried to place the event.target.mailDoc() as a function in a variable and called it via a timeout method but that did not work.

 

Thank you for your help

 

Louis

TOPICS
How to, JavaScript, PDF forms

Views

96

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
community guidelines
Most Valuable Participant ,
Apr 15, 2021 Apr 15, 2021

Copy link to clipboard

Copied

Is this an LCD form?

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
community guidelines
Community Beginner ,
Apr 15, 2021 Apr 15, 2021

Copy link to clipboard

Copied

Oh YES. I guess I should have mentioned that. Livecycle Designer ES4

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
community guidelines
Most Valuable Participant ,
Apr 15, 2021 Apr 15, 2021

Copy link to clipboard

Copied

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
community guidelines
Community Beginner ,
Apr 15, 2021 Apr 15, 2021

Copy link to clipboard

Copied

LATEST

Thank you 🙂

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
community guidelines
Community Beginner ,
Apr 15, 2021 Apr 15, 2021

Copy link to clipboard

Copied

I should have mentioned that this is a Livecycle Designer ES4 dynamic form.

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
community guidelines