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
BedrockMission!

Learn More

View all

Sign in to view all badges

Help with mailDoc()

Avatar

Avatar
Validate 1
Level 1
Labreclo
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Labreclo
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Labreclo
Level 1

15-04-2021

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 50
MVP
Vijayalakshmi_S
MVP

Likes

433 likes

Total Posts

567 posts

Correct Reply

189 solutions
Top badges earned
Give Back 50
Give Back 5
Ignite 10
Ignite 5
Ignite 3
View profile

Avatar
Give Back 50
MVP
Vijayalakshmi_S
MVP

Likes

433 likes

Total Posts

567 posts

Correct Reply

189 solutions
Top badges earned
Give Back 50
Give Back 5
Ignite 10
Ignite 5
Ignite 3
View profile
Vijayalakshmi_S
MVP

28-04-2021

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

270 likes

Total Posts

1,101 posts

Correct Reply

180 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

270 likes

Total Posts

1,101 posts

Correct Reply

180 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile
Mayank_Gandhi
Level 10

15 hours ago

@Labreclo  Can you try something, try triggering a mail again manually after hiding and see if the mail is as per the requirement. 

Avatar

Avatar
Validate 1
Level 1
Labreclo
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Labreclo
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Labreclo
Level 1

04-05-2021

@Mayank_Gandhi It is a subform placed on top of a master page

 

Avatar

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

270 likes

Total Posts

1,101 posts

Correct Reply

180 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

270 likes

Total Posts

1,101 posts

Correct Reply

180 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile
Mayank_Gandhi
Level 10

04-05-2021

@Labreclo Is this main a master page?