Page 1 of 1

On save print another form

Posted: 27 Jun 2016
by Stu
Hi Guys

When a user has finished editing a form and clicked save. I would like to print 2 copies of the display view of the form to a default printer.
  • Can I pass parameters in the fd.printForm() to print the display view of the form?
  • Can I get the print to happen without the need for the user to choose a printer, etc.

Re: On save print another form

Posted: 28 Jun 2016
by Dmitry Kozlov
Hi Stu,

You can redirect a user to the display form after saving and pass additional parameter in the query string, say print=1. Then check this parameter in the display form and print form if needed:

Code: Select all

if (GetUrlKeyValue('print')) {
    fd.printForm();
}
Unfortunately, you cannot pick a printer via JavaScript.