Questions tagged [sp.ui.modaldialog.showmodaldialog]

Displays a modal dialog with specified dialog options.

Filter by
Sorted by
Tagged with
0 votes
1 answer
71 views

Fix needed for SP.UI.ModalDialog.showModalDialog to work with Edge and Chrome

Anyone know of the fix to make this work in Chrome and Edge? <script type="text/javascript"> $(document).ready(function(){ SelectEmployee(); }); function ...
1 vote
1 answer
78 views

Sharepoint 2013-File getting downloaded before ModalDialog opens

I am trying to create a modal dialog on click of a hyperlink file column(SharePoint 2013).I am able to open the Modal dialog in an Iframe But it's happening only after the file download. I don't want ...
0 votes
2 answers
78 views

SharePoint 2016 modal popup undefined error

Platform: SharePoint 2016 I am trying to use SharePoint's pop-up modal in SharePoint 2016 but it worked once and after a few minutes it stopped. I get the following error 'OpenPopUpPageWithTitle' is ...
  • 211
0 votes
1 answer
101 views

Detect when modal window is fully loaded

I'm using this piece of code (based on solution here) to check whether modal window fully loaded: var dialog = SP.UI.ModalDialog.get_childDialog(); if (dialog != null && dialog.$e_0 != null) {...
0 votes
2 answers
574 views

How to make a Modal popup when someone clicks a link on my page

I found a solution to popup modals from this question and implemented this code: <script language="javascript" type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min....
0 votes
1 answer
37 views

I am trying to append a parameter like ID to a URL in a SP.UI.ModalDialog Popup

I seem to be hitting a wall getting this to work. I can get the ModalDialog Popup to work but I have spent many hours trying to figure out how to pass a parameter over to the dialog box. The Goal: Is ...
  • 1,159
1 vote
0 answers
127 views

My close button is going out of the dialog box in sp modal dialog

My close button is going out of the dialog box. So can I change or align the position of button in SP UI Model Dialog?
0 votes
2 answers
275 views

showModalDialog passed arguments not available on load

I have a page that is using SP.UI.ModalDialog.showModalDialog() to open a NewForm for a list. In the open code I'm passing some values in the args options property as described in this documentation. ...
  • 2,898
1 vote
1 answer
594 views

Show this modal popup once per session

I have implemented a modal popup in sharepoint 2016 from a tutorial on another site with this code: <script language="javascript" type="text/javascript" src="//ajax.googleapis.com/ajax/libs/...
0 votes
1 answer
541 views

Prevent item form delete from redirecting

TL;DR I need a way to prevent the edit form dialog (iframe) from navigating the top window when I click delete on an edit form. I found this thread the answer given (also detailed in this blog post) ...
  • 2,898
1 vote
0 answers
108 views

Closing modal dialog, script error

Using jquery I'm opening a SharePoint page in a dialog, this works perfectly fine. Now on that page I have a button to submit a custom form and finally close the dialog again. While this works when ...
  • 1,219
1 vote
1 answer
1k views

Refresh publishing page on modal form submit in SharePoint Online

I have a publishing page with a button users can click to launch a new list item form in a modal pop-up. It works great but I'm trying to add a page refresh after they click Save so they can see their ...
0 votes
1 answer
436 views

SP.UI.ModalDialog Not working

I would like to show SP.UI.ModalDialog until I process and bind the data to data table. Can any one please do let me know what's wrong in it. $(document).ready(function() { //alert("Hello World");...