Hide SP ribbon in modal view

rss

Posted by mcgaafar - Apr 6 ’16 at 12:39

Hi,

I used the general settings of Forms Designer to hide SP ribbon on my forms and it's working fine unless the form is opened in modal view, in that case the ribbon is shown again. So how do i hide it in that case?

Thanks.

  • rostislav
    rostislav
    Moderator
    Member for: 4 years 9 months 20 days
    #1 by rostislav Apr 7 ’16 at 07:41

    Hi,

    Use this:

    if (window.top !== window.self) {
    	$('#s4-workspace').css('height', $('#s4-workspace').css('height') + $('#s4-ribbonrow').css('height'));
    	$('#s4-ribbonrow').css('display', 'none');
    } 
  • mcgaafar
    Member
    Member for: 4 years 1 month 7 days
    #2 by mcgaafar Apr 7 ’16 at 08:23

    That worked perfectly, thanks.

Displaying 1 to 2 of 2 messages