Microsoft Ribbon

  • 30 March 2020
  • 3 replies
  • 16 views

Badge +1

Up until a few days ago, I was utilizing the code below to hide the Microsoft ribbon and left Nav on my Nintex Forms.  Apparently Microsoft made a change to the ribbon and now the ribbon code doesn't work (hiding of left Nav still works).  Does anyone have any ideas as to what the new code is?  I am using on prem SharePoint 2013 and Nintex 2013.  

 

Thanks in advance.

 

// Hide the form ribbon

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

// Hide the left navigation

NWF$("#sideNavBox").hide();

//NWF$("#contentBox").css({"margin-left":"0px"});


3 replies

Badge +8

Hi,

maybe not a CSS solution but it works.

If you open a form with "isDlg" parameter in the url, the sidebar and top bar are hidden.

For example:

 

No isDlg:

7040i9A2AFE923D9723C1.png

 

With isDlg=1:7041iE91ECCCCC04EAD8A.png

Badge +1

Thanks for the response.  However, that was not an acceptable solution.  Working with Nintex, we tracked down this JavaScript solution to hide the ribbon.

 

NWF$(document).ready(function() {

   // Hide the form ribbon

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

});

 

 

Badge
thanks this worked!

Reply