Skip to main content
Nintex Community Menu Bar
Solved

Print to PDF with Javascript


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

View original
Translate

Hi,

I finally found the code to call.

NWF.FormFiller.PrintToPDF.PrintToPDF();

Regards,

Michael

Translate

Forum|alt.badge.img+6

Hi Michael,

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

Cheers:)

Sunil

Translate

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

Translate

  • 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

Translate

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

Hi Michael,

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

Jon

Translate

Forum|alt.badge.img+7

H Michael,

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

Translate

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.

Translate

Forum|alt.badge.img+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

Translate

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

Translate

Forum|alt.badge.img+1

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


 


Thank you!

Translate

Forum|alt.badge.img+1

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

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings