Hide SP ribbon in modal view

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
mcgaafar
Posts: 44
Joined: Sun Jan 17, 2016

06 Apr 2016

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.

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

07 Apr 2016

Hi,

Use this:

Code: Select all

if (window.top !== window.self) {
	$('#s4-workspace').css('height', $('#s4-workspace').css('height') + $('#s4-ribbonrow').css('height'));
	$('#s4-ribbonrow').css('display', 'none');
}

mcgaafar
Posts: 44
Joined: Sun Jan 17, 2016

07 Apr 2016

That worked perfectly, thanks.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests