Hide Print to PDF Button

  • 9 May 2018
  • 1 reply
  • 4 views

Badge +3

I have a custom Print to PDF button setup inside the form .

The default one in the ribbon generates PDF misaligned .

Now i like to hide the default  Print to PDF button .

Tried using this code , didn't work . could anybody help me with this 

if(isNewMode)
{
.ms-cui-tabContainer ul li:nth-child(4){
visibility: hidden !important;
}
}

if(isDisplayMode)
{
.ms-cui-tabContainer ul li:nth-child(3){
visibility: hidden !important;
}
}

if( isEditMode)
{
.ms-cui-tabContainer ul li:nth-child(5){
visibility: hidden !important;
}
}


1 reply

Badge +3

I tried this which worked , but it hides the entire ribbon . I like to hide just the print to PDF .

NWF$("#s4-ribbonrow").hide();

Reply