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
2 Answers
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.
-
I tried... in SP 2013.. by default its selected as NO, but still its opening in dialog box :(– AvinashCommented Jul 10, 2014 at 6:00
-
did you tried omitting &Isdlg=1 from the link that is on 'New Item' ? Commented Jul 10, 2014 at 6:10
-
I tried and there is no &Isdlg on the sharepoint designer page– AvinashCommented Jul 10, 2014 at 6:17
-
-
I changed it using a CEW, i wrote some javascript to redirect on click :)– AvinashCommented Jul 10, 2014 at 6:36
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>