Skip to main content
Nintex Community Menu Bar
Solved

Print to PDF with Javascript

  • May 4, 2016
  • 11 replies
  • 378 views

Forum|alt.badge.img+3

Hello fellow Nintex Admins,

 

i am testing Nintex Forms Enterprise at the moment, to see how the implemented PDF creation works. The problem is, there seems to be no button binding for this feature and i can only print through the Ribbon Bar. In my form i don't show the Ribbon Bar, so the user can't access the Ribbon Menu Button.

 

Is there a Nintex JavaScript method to trigger the feature?

 

Cheers

Daniel

Best answer by michaelpetersen

Hi,

I finally found the code to call.

NWF.FormFiller.PrintToPDF.PrintToPDF();

Regards,

Michael

11 replies

Hi,

I finally found the code to call.

NWF.FormFiller.PrintToPDF.PrintToPDF();

Regards,

Michael


Forum|alt.badge.img+6

Hi Michael,

Great.  Your solution has solved my issue and efforts also.

Cheers:)

Sunil


Chris_Ben
Nintex Employee
Forum|alt.badge.img+14
  • Nintex Employee
  • November 29, 2016

Hi team,

Is there an equivalent JavaScript function for Forms Enterprise for o365?

Cheers,

Chris


  • December 2, 2016

Hi,

I'm in the same boat. I really also hope for a similar solution to forms for o365.

Anybody?

Kind Regards, Rune


Forum|alt.badge.img+3
  • May 4, 2017

Hi Michael,

Thanks for this solution. You've solved my issue.

Jon


Forum|alt.badge.img+7
  • May 29, 2018

H Michael,

Excuse my ingnorance, but where would I put the code to call that you suggested? (NWF.FormFiller.PrintToPDF.PrintToPDF)


Hi Susie,

You would create a button and use JavaScript. Then you can put your Javascript on the form in a function

and call that function from your button.


Forum|alt.badge.img+7
  • May 31, 2018

Thank you.  That worked.  For other newbies, here is what I did:

  1. I dragged the Button control onto the form
  2. Double click on the Button
  3. Below is my configuration

Name: I used PrintToPDF

Button Action: Select JavaScript

Button Label: PDF

Appearance

   Visible: Yes

Ribbon

   Show on Ribbon: Yes

Advanced

   Visible when in view mode: Yes

Enable when in View Mode: Yes

Client click: Type - NWF.FormFiller.PrintToPDF.PrintToPDF();

Make other changes as needed or leave default

Save

Publish


Hello,

 

I tried the intruction above but still no file is generated.

There is a loading pop up.. but no pdf file.

 

Im using on premise 2013 version.

 

Thanks in advance :)


Forum|alt.badge.img+1
  • November 14, 2019

@Isabel1126 Hello! This is the same issue I'm running into. Were you able to find a solution?

 

Thank you!


Forum|alt.badge.img+1
  • March 18, 2021

hi, thanks for info. What if you don't see JavaScript in your Button action menu?