I'm trying to save the Infopath web part to pdf and think print should be able to do this for me. (as you can then just select save to pdf)

Similar to this question which seems to have been answered by the asker but the critical part of the question has vanished.

I found what I assumed was the web part id required (the string after "webpartid=") when inspecting the infopath element but pasting this in place of the doesn't seem to work.

ie. var WebPartElementID = "fb1a953f-bbfb-41ae-a60d-a84a1fe70798";

Webpart ID

Is there another way to add a print button for an Infopath form in SharePoint Online? Or am I just doing it wrong?

1 Answer 1


It all depends on what you want to achieve with the Print button. The way I achieved that usually is to have and Print view in Infopath (sometimes IP form was split into multiple sections that were filled in during different part of workflow, so in Print view we could put all relevant fields) That view as very plain not containing any branding that other part of form might have. And from there you would use normal print option from web browser and route it to pdf printer.

  • Ideally I would like to be able to click this and immediately be prompted to save to pdf but if it did the same as rightclick-print that would be alright.
    – lewkir
    Commented Jun 7, 2019 at 9:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.