Solved

Print to PDF with Javascript


Badge +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

icon

Best answer by michaelpetersen 4 August 2016, 13:07

View original

11 replies

Hi,

I finally found the code to call.

NWF.FormFiller.PrintToPDF.PrintToPDF();

Regards,

Michael

Badge +6

Hi Michael,

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

Cheers:)

Sunil

Userlevel 6
Badge +12

Hi team,

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

Cheers,

Chris

Hi,

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

Anybody?

Kind Regards, Rune

Badge +3

Hi Michael,

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

Jon

Badge +7

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.

Badge +7

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 :)

Badge +1

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


 


Thank you!

Badge +1

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

Reply