Exclude tabs from printing

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Oz.Ab
Posts: 39
Joined: Mon Oct 09, 2017

06 Jun 2018

Hi guys.

I have looked all over and I can't find anything about this subject in the forum so I hope this question (and answer) will be useful to the group.

I have a Display form and a specific button to print the form > with OnClick: fd.printForm();

The Display form has 4 tabs. I don't want tabs 3 & 4 to be printed.

How can I exclude certain tabs from the printing? Any suggestions?

Kindest regards :)

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

06 Jun 2018

Dear Oz,
You can use CSS in the CSS editor to hide specific tabs, and use media query in it to only do it while printing, like this:

Code: Select all

@media print {
    #fd_tabcontrol-0 #fd_tabcontrol-0-tab-3, #fd_tabcontrol-0-tab-4 { 
        display: none !important; 
    }
}
Cheers

Oz.Ab
Posts: 39
Joined: Mon Oct 09, 2017

07 Jun 2018

Works perfectly - thank you!

ragesoft
Posts: 50
Joined: Fri Feb 23, 2018

13 Jun 2018

Would be nice to give each tab in tab control a custom css class. but ther is no option in editor for it. Maybe a feature request for next version? :)
Is there any "backlog" or "roadmap" or "feature request" for SPForm?

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests