0

I need to do some customization with my new item form in Document Library, I have a document library, when i click on new item the new item form opens in a modal dialog i need to prevent this from happening as i want it to open in in a new tab or in the same page but not as modal dialog but i want to display on the page completely. Thank you

1

Goto List Settings > Advanced Settings

You will see an radio button

Launch forms in a dialog?

Click on "NO" and press ok

and you are done.

Check this link for details

  • I tried... in SP 2013.. by default its selected as NO, but still its opening in dialog box :( – Avinash Jul 10 '14 at 6:00
  • did you tried omitting &Isdlg=1 from the link that is on 'New Item' ? – Varun Verma Jul 10 '14 at 6:10
  • I tried and there is no &Isdlg on the sharepoint designer page – Avinash Jul 10 '14 at 6:17
  • what is the link on New Item ? – Varun Verma Jul 10 '14 at 6:22
  • I changed it using a CEW, i wrote some javascript to redirect on click :) – Avinash Jul 10 '14 at 6:36
1

I used this Javascript to redirect:

<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"> </script> 
<script language="javascript" type="text/javascript">  
    function PageOnLoad() {    
        document.getElementById('idHomePageNewDocument-WPQ2').onclick= function() { document.location="http://sp2013/sites/sitecollection/doclibrary/Upload.aspx"; };    
        }
    _spBodyOnLoadFunctionNames.push('PageOnLoad'); 
</script>

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.