Expand my Community achievements bar.

SOLVED

How to save and print after emailing

Avatar

Level 7

I'm working on a form where the business wants the end user to have the option to print and/or save after the email is sent. Is this possible to do and how would one do this?

Thanks,

MDawn

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hello MDawn,

You can write the following script in the "postSubmit" event of the Email button

app.execMenuItem("SaveAs");  // to save the form


xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
  // to Print the form

Thanks,

Debadas.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 4

Hello MDawn,

You can write the following script in the "postSubmit" event of the Email button

app.execMenuItem("SaveAs");  // to save the form


xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
  // to Print the form

Thanks,

Debadas.

Avatar

Level 7

Thanks. I'll try that.

Margaret Dawn

630-850-1065