On save print another form

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Stu
Posts: 23
Joined: Tue May 10, 2016

27 Jun 2016

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.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

28 Jun 2016

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.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests