In SharePoint, when we edit, view or Add an item in lists or libraries we observe that we do not find maximize button in SharePoint 2013. How to I add the maximize button to all the lists and libraries form as we see in SharePoint 2010. I need a generic answer.

Thanks in advance.


In SharePoint 2013, find the SP.UI.Dialog.js in (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS).

Open the file using Notepad, and then replace the code below

if (SP.ScriptUtility.isNullOrUndefined($p0.allowMaximize)) {
    this.$f_0 = false;


if (SP.ScriptUtility.isNullOrUndefined($p0.allowMaximize)) {
    this.$f_0 = true;

enter image description here

  • Thankyou so much. – sushma manne Mar 6 at 5:25
  • Changing OOTB files in Layouts is never a good idea – Robert Lindgren Mar 6 at 6:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.