On save print another form

rss

Posted by Stu - Jun 27 ’16 at 09:29

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.

 

Thanks

Stu

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 21 days
    #1 by Dmitry Kozlov Jun 28 ’16 at 07:47

    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:

    if (GetUrlKeyValue('print')) {
        fd.printForm();
    }
    

    Unfortunately, you cannot pick a printer via JavaScript.

Displaying 1 to 1 of 1 messages