On save print another form
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.
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.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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:
Unfortunately, you cannot pick a printer via JavaScript.
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();
}
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests