Page 1 of 1

Exclude tabs from printing

Posted: 06 Jun 2018
by Oz.Ab
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 :)

Re: Exclude tabs from printing

Posted: 06 Jun 2018
by Nikita Kurguzov
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; 
    }
}

Re: Exclude tabs from printing

Posted: 07 Jun 2018
by Oz.Ab
Works perfectly - thank you!

Re: Exclude tabs from printing

Posted: 13 Jun 2018
by ragesoft
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?