Hi All,
I have a custom icon on which I am calling upload form of my document library
<span class="uploadIcon" onclick="javascript:SP.UI.ModalDialog.ShowPopupDialog('https://mysite.sharepoint.com/sites/test/_layouts/15/Upload.aspx?List=%7B159D7C5E-02BF-4F53-8C5F-2514810CEF6F%7D')"></span>
So this opens upload.aspx and I select the file, after which the editform.aspx opens in pop - here I have added my custom js which is changing the look and feel of the form.
The issue is I am unable to hide "x" icon, and also I am unable to change the title of the pop up which is "Add a document"
I am not getting "x" element nor getting any elements from <div class="ms-dlgTitle" style="cursor: move;"> - Not getting the elements in document.ready and this not working even with setTimeout
SP.UI.ModalDialog.showModalDialog(options);var options = {
title: " Title",
width: 400,
height: 600,
url: "/_layouts/newform.aspx"
};
SP.UI.ModalDialog.showModalDialog(options);
On click of "x" need to call custom function and need to change pop up title.
Thanks in Advance, Jiniv Thakkar