In user interface design, a modal dialog is a child window that requires users to interact with it before they can return to operating the parent application

learn more… | top users | synonyms

12
votes
5answers
12k views

SP.UI.ModalDialog.showModalDialog using the html option

http://msdn.microsoft.com/en-us/library/ff410058.aspx says that you can use the option html to display html text in a modal. I have a string like this; var html = ...
11
votes
3answers
824 views

Modal Dialogs and Minimal Download Strategy

I am having the following issue in SharePoint 2013 Online (Office 365 Preview): when I try to display in a modal dialog a page that relies on MDS (Minimal Download Strategy), the dialog opens but then ...
10
votes
2answers
766 views

Opening and closing AssetPortalBrowser.aspx in SharePoint modal popup

I am trying to open the "OOB" AssetPortalBrowser.aspx from a page within a SharePoint native modal popup. My aim is to get the selected filename back to the script. So far I was able to open the ...
9
votes
1answer
211 views

Passing args to QuickLinksDialog with JS

I have a small button on a site which when i press should start a QuickLinksDialog and fill in some of the fields there. Everything goes good and well except the fields (like: title and url) still ...
8
votes
1answer
7k views

How do I show a loading div when opening a modal dialog from a CustomAction?

I have created a new CustomAction which is a new item (link) in Site Actions menu. When you click it, it opens a modal page (aspx). Everything works fine, but it takes about 3 seconds to open the ...
7
votes
4answers
6k views

Sharepoint 2010 Modal Dialog Box is cropped

I am working on SharePoint 2010 project with custom master page. I am having this problem where contents on my modal dialog box is cut off (see below). I have spent hours googling and using firebug ...
7
votes
3answers
6k views

Open a different page within a modal dialog

On button click I am opening a modal popup and containing a custom webpart. The custom webpart inside the modal popup has a button, on click of this I want to open another modal popup but while doing ...
6
votes
3answers
919 views

Maximize modal dialog on SharePoint 2013

In SharePoint 2013, maximize button is missing when click on New item, and there is no way to maximize the modal dialog (opened by standard New or Edit item). I tried JavaScript method that works on ...
5
votes
1answer
3k views

Open modal dialog from code-behind with parameters

What I need to do is to open an aspx-page in a modal dialog when the user clicks on a asp:button. Currently I'm doing this: (Markup) <asp:Button runat="server" ID="TestButton" Text="Add ...
5
votes
1answer
550 views

How to add a “processing” gif to a Modal Dialog?

I am popping up a Modal Dialog using SP.UI.ModalDialog.showModalDialog. From the time that the modal pops up until the controls render on the page there is sometimes a bit of a lag. What I would ...
4
votes
4answers
5k views

Detect if modal dialog box

Is there a way to detect using sp.js or jquery to detect if the current context is in a modal dialog box? Im not sure I explained that right, so here is a situation: We have a branded system master ...
4
votes
2answers
2k views

Showing a modal dialog using html option in SP2013 seems broken

In SP2010 you could easily show a dialog using a DOM node with something like this: var test = "<div id='correspondence'>" + result + "</div>"; $('body').append(test); ...
4
votes
2answers
3k views

Trying to redirect after closing Modaldialog, but parameters aren't set

I have a layouts page which creates a new site. I use SP.UI.ModalDialog to show the site. I've created the following js function I use to pop it up: function PagePopupAndRedir(fileUrl, fileTitle, ...
4
votes
3answers
996 views

Commit modal dialog and then display notification

I have a modal dialog that I commit by calling window.frameElement.commitPopup(), and this is great because it refreshes the parent window. However I would also like to display a notification on the ...
4
votes
2answers
839 views

Object #<Object> has no method 'showModalDialog'

Consider the following code: var options = { title: 'Create a new Post' autoSize: true, url: url } SP.UI.ModalDialog.showModalDialog(options); The code is executed from a ECB custom ...
3
votes
2answers
13k views

SharePoint Modal Help - pass value back to parent when closing

I'm using SharePoint Modals within my implementation, I've used these before and have basic experience with them. I do as much work as possible in C# and use JS where I have too :-) My current ...
3
votes
4answers
3k views

Prefilling field in NewForm.aspx in modal popup

I have a listview setup on my page which shows orders from an orderlist. Works great. Now I want to add a column which displays an icon. When the user clicks this icon, the NewForm.aspx page from ...
3
votes
3answers
6k views

Possible to close a Modal Dialog from code behind?

I am popping up a Custom Application Page using a call to SP.UI.ModalDialog.showModalDialog. Is there a way that I can close the dialog from the code behind after a user clicks a button?
3
votes
3answers
4k views

Rich Text fields in New Item Dialog - IE9

I had an issue with a number of things due to upgrading my web application's master page to utilize IE9 for HTML 5 and CSS 3 goodies. The problem is this breaks a LOT of things in SharePoint 2010. ...
3
votes
3answers
2k views

Prevent/override standard Modal Dialog close button(X) from closing

I want to validate custom modal dialog form and if its not ok, prevent form from closing. For this purpose, I attached to X-close-dialog-button. Problem is to prevent it's default behavior. function ...
3
votes
2answers
2k views

Show a message while loading modal dialog

I'm loading a modal dialog on a web part. Sometimes it takes a lot of time to load, like 6/7 secs. Here's the code: function Init(title, id) { var dialogOptions = SP.UI.$create_DialogOptions(); ...
3
votes
1answer
801 views

Disabling the Dialog pop-up for Calendar views

It seems from my trivial Google searches, that some users find, for certain list types - an inconsistent experience related to modal dialogs. In my scenario, we have a plain old SharePoint Foundation ...
3
votes
6answers
9k views

SP.UI.ModalDialog.RefreshPage from the dialog itself?

I have customized the display form on one of my list. On a webpart page, I have drop a view to this list. When I click on the title of my item, the custom disp form is shown as expected in a modal ...
3
votes
1answer
1k views

Is it possible to use SP Modal Dialogs in App Pages?

I have a provider hosted App and need to use modals in my App Pages. Is it possible to use SP Modal Dialogs from SP.UI.Dialog.js ? What JS files are required to be included?
3
votes
2answers
2k views

Multiple SharePoint 2010 modal-dialogs

Is it possible to show multiple modal-dialogs above each other? It should work like this: 1) User clicks link that opens first modal dialog 2) in first modal dialog, user clicks another link that ...
3
votes
1answer
228 views

In SharePoint 2013 is it possible to change the size of modal popup which opens when loading new/edit/display form of all lists?

In SharePoint 2013 is it possible to change the size of modal popup which opens when loading new/edit/display form of all lists? I want to inc the width and height. Please guide..
3
votes
3answers
4k views

How to modify width of standard dialog form sharepoint 2010

Please, help me! I need to modify width of standard dialog form for adding element into library. If I click to ribbon button for adding element, form opened with width=402px: <div ...
3
votes
2answers
1k views

Is it possible to access the web part properties from a dialog?

In my web part I use the create_DialogOptions JS function to create a new aspx site as a dialog box. That works fine. Now I would like to have access to the custom properties from the web part. I ...
3
votes
0answers
31 views

Making SP.UI.ModalDialog Scrollable on Mobile

I have a basic Modal Dialog loading on my sharepoint page through a function. It loads correctly and can scroll on desktops perfectly fine. I began testing the page for mobile functionality on a ...
3
votes
1answer
369 views

making an SP.UI print dialog

I'm thinking of adding a print button to my list ribbon , the minute I click on this button a print dialog appears showing the list of the available printers on my computer. so this printdialog i was ...
2
votes
1answer
428 views

Using Sharepoint Modal

we are implementing a feature in sharepoint where the user can share documents, we are reworking our own UI to make it easier for the end user. We have a modal popup where you can select multiple ...
2
votes
1answer
158 views

What is the id of the close button on a modal dialog?

I have a modal dialog and I want to change some of its properties through javascript. I have found the jquery code jQuery("a[id^='DlgClose']") but when I try to use the javascript ...
2
votes
1answer
1k views

Customize Sharepoint 2010 Ribbon in Dialog ONLY

In the screenshoot below I pasted the Dialog of the NEW ITEM on top of our website. The ribbon bar selected in red, we want to change it, but it should be different to the ribbon bar in the normal ...
2
votes
2answers
2k views

Open Dialog for new List Element with JavaScript - Access Denied

My SharePoint 2013 App has a button with the click Event: OpenDialog("/Lists/ListName/NewForm.aspx?IsDlg=1"); where OpenDialog is defined the following way: function OpenDialog(URL) { var ...
2
votes
2answers
359 views

Get Modal Dialog Close button

I have override new item form for list, opening myPage.aspx where this javascript is in the "PlaceHolderAdditionalPageHead": function fGetCloseBtn() { var closeButton = ...
2
votes
3answers
3k views

Detect Modal Dialog Close with JQuery

In my application, I am trying to hide scrollbars in the parent window when a modal dialog is opened... I've added this to my Master Page: $(function(){ if(window.frameElement != null) { ...
2
votes
3answers
1k views

Open a modal from a link in wiki-site: Sharepoint removes javascript

so I tried to add a little horizontal menu to a wiki-site and wanted one of the links to open in a modal Dialog (a contact form). Every time I try to add it about the UI, sharepoint removes the link. ...
2
votes
1answer
5k views

How to open a form in a modal dialog popup using C#

I have virtually no experience with web development but now I need to create a web part for SharePoint 2010 and I am stuck. The web part is supposed to find all content types derived from folder ...
2
votes
2answers
938 views

Can't get a basic Modal to work on 2010

I'm migrating a project from SP2007 to SP2010. I want to get a modal popup to work, to open up the New Item window of a list from an aspx page. I can't get the modal to work in the most basic example, ...
2
votes
1answer
2k views

SharePoint Modal for Document Upload: changing the Dialog options for Edit Form

So I am using the Upload.aspx for doc lib with GUID in order to have Upload at a custom spot on a page. I think its the edit form that pops up right after you upload a document to add the metadata. ...
2
votes
3answers
7k views

SharePoint parent page refresh on close of Modal Dialog, IE issue

I have a Webpage in which two webparts are installed. This is a system wherin user can make holiday request and manager can approve or reject. In 1st webpart The holiday requested by a user is shown ...
2
votes
2answers
2k views

Content Types “Link to document” and open in Dialog

I have a new Document Library and have added the content type "link to a document" to the library. Somehow when I create a new "link to a document" item in the library the dialog won't open. Instead ...
2
votes
2answers
120 views

Are the pop-ups in 2010 enforced?

I'm not a fan of the popup list add/edit dialogs to add content in 2010, is there an alternative UI, or is this something I have to get used to?
2
votes
1answer
760 views

Making Presaveaction() wait for SP.UI.ModalDialog response

I am using the Presaveaction() to perform pre-new/edit form validation. Once all fields have been validated successfully I would like to offer my users the ability to 'Save and Exit' or 'Save and ...
2
votes
2answers
2k views

How to Auto close ShowModelDialog box using JQuery?

I created a custom Ribbon button to generate a report in excel for my external lists. When I click on the ribbon button, A modal pop up is displayed. I want to auto close the modal popup after my ...
2
votes
1answer
3k views

Close modal dialog and redirect to previous page with parameter

I have opened up a page in a modal dialog by using OpenPopUpPage('myPage.aspx') The page contains a button. Clicking on the button should cause the modal dialog to close, perform some server side ...
2
votes
2answers
5k views

SP2010 Using Modal Dialog for Forms : Beginner Questions

So I am trying to figure out how to use some java script in order to use a modal dialog to display new item form. The below is what I have thus far, but its not working and I am not sure what portion ...
2
votes
3answers
5k views

SP.UI.ModalDialog does not close

I have custom field. This field contains video. In Render method I open modal dialog (SP.UI.ModalDialog), and inside of this dialog I display a video (with WebControls:MediaWebPart). The modal is ...
2
votes
1answer
155 views

Calendar Forms still loading via Dialog, despite Advanced List Setting saved?

I've got a problem where, it seems the 'Add Event' option within an SharePoint 2013 Calendar is always using a dialog to add an Event. Despite I've repeatedly saved the 'Advanced Setting' for: ...
2
votes
1answer
44 views

2010: How to get rid of the bottom Cancel button (not the close X Button) in a modal dialog page which uses dialog.master as Master Page?

My custom dialog page uses dialog.master as master page. It shows a Cancel button at the bottom right of the dialog box, which closes the dialog instantly. Since I implemented my own cancel button ...