Print form button

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Katy
Posts: 145
Joined: Wed Dec 02, 2015
Location: Canada

08 Aug 2017

Hi, I've been using Print Form button on my forms for a long time and it was working great when i set it up, but recently users started to complain that it prints not just form but the page banner + item name on top and link on bottom. I checked all the forms where i have it and it is in fact so. I clearly remember that it was just printing neat form at the beginning. So i went into several forms -> removed it and re-saved -> didn't help. Do you have any idea why it is doing that and how i can set it back to print just the form?

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

09 Aug 2017

Hello, Katy!
Unfortunately, we can't do anything about it as these are part of your browser's printing settings. You need to change them before you print a Form, if you don't want them to appear. Just search for how to do it in your particular browser.
Cheers

Katy
Posts: 145
Joined: Wed Dec 02, 2015
Location: Canada

09 Aug 2017

Hello Nikita :-)
Sure, the title and header and other staff - i get it, i know about it. What i am talking about is the page elements itself - we have a corporate banner on a page and before that it wasn't printing, only the form itself. Now it is included into the print.

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

09 Aug 2017

You can simply hide UI elements, like the banner, in print mode if you add ‘fd-no-print’ CSS class to them.
Cheers

Katy
Posts: 145
Joined: Wed Dec 02, 2015
Location: Canada

09 Aug 2017

Nikita Kurguzov wrote:
09 Aug 2017
You can simply hide UI elements, like the banner, in print mode if you add ‘fd-no-print’ CSS class to them.
But they are not a part of the form, they are a part of the page where the form is built. I put the picture in attachment for better understanding.
I understand that this button should print ONLY the form, and it did before. Now for some reason it includes the page banner.
Attachments
FormBanner.png
FormBanner.png (132.68 KiB) Viewed 3338 times

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

10 Aug 2017

Hello, Katy!
The print form button will print all the contents of the page, including the banner and other web parts, but it will not print SharePoint menus and the ribbon. That is the whole point. If someone added a banner to their form, in many cases they might want to print it as well. If it wasn't the case, it would be quite limiting. And that is how it always worked.

On the other hand, you can hide certain UI elements from printing by simply adding ‘fd-no-print’ CSS class to them. It doesn't matter if they are a part of the form or not, it will still work.
Cheers

Katy
Posts: 145
Joined: Wed Dec 02, 2015
Location: Canada

10 Aug 2017

According to the article here :
"Now, when I click ‘Print’, the following document is produced:
...
As you can see, the document contains just the form without all the extra bits present on the webpage,..."
So my document does contain a banner which is not a part of the form.

And as I mentioned at the beginning it was working as expected before.

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

10 Aug 2017

Sadly, I cannot tell you why it worked differently beforehand as it should've always worked this way.

What the article means, it would ignore all the standard Sharepoint layout of the page, all the menus, the ribbon and other technical stuff you will get if you try to simply print the page with the browser. But it shouldn't remove other web parts from your page, such as banners, in case you want them to be printed.

In case you don't want them to be printed, you can always manually exclude them from printing. But in case you do, the functionality to include them is always present.
Cheers

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests