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

2
votes
3answers
2k 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
8k 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
1k 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
3k 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
1answer
4k 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
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 I'...
2
votes
2answers
122 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
3k views

SP.UI.ModalDialog undefined - Close SharePoint Modal dialog with javascript

I have created a modal dialog in SharePoint with the elements.xml. I use a SharePoint Hosted app. This is my CustomAction Definition: <CustomAction Id="2c2b7036-4582-4238-8205-b348628c0ed9....
2
votes
3answers
763 views

Changing bg colour on a modal dialog box - s4-ribbonrow

I have a slight css issue and was hoping someone would be able to assist. I am in danger of being blocked asking any further questions so I'll try to be as clear and concise as possible :) I would ...
2
votes
1answer
1k 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
3k 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
2answers
6k 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
1answer
1k views

Use existing Modal Popup

I was wondering is there is a way to use the existing modal popup already used by SharePoint and override its callback? Thanks.
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
100 views

Hyperlink Column Link Should Open in Modal

I want the user to click a link and then that link should open in a modal window. I have tried this on a blank page with a CEWP and it works using both of the following codes: <a onclick="NewItem2(...
2
votes
1answer
62 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 ...
2
votes
2answers
848 views

Sharepoint Iframe Cross Domain

I developed a web part that is loading a dialog, something like: var dialog = SP.UI.$create_DialogOptions(); dialog.url = '_layouts/page.aspx'; etc.. Inside this dialog I have several stuff and ...
2
votes
1answer
5k views

Create a hyperlink to open a New List Item Content Type in modal View in SharePoint 2010?

I have been researching this for a while now and no where can I find a solution that works perfectly in a list with multiple content types. I needed to create hyperlinks on a page where the user could ...
2
votes
1answer
90 views

How do I populate a primary page with some data entered in a modal dialog box

I used OpenPopupPage to display an application page as a modal dialog box to collect some user input. I would like to take the results of that user input and populate two text boxes on the main page (...
2
votes
1answer
7k views

SP.UI.ModalDialog.commonModalDialogClose Doesn't Close

I'm using a ModalDialog and have a strange issue. On a button click server side in my popup, I've this line: this.Page.ClientScript.RegisterStartupScript(this.GetType(), "PopupScript", "popData = '" ...
2
votes
1answer
2k views

“Ribbon.Read” has not been made available for this page or does not exist

I have created a link to open up a new page in a model form. I get this error but I dont know how to fix this The Ribbon Tab with id: "Ribbon.Read" has not been made available for this page or does ...
2
votes
1answer
574 views

Globally intercept dialog close?

I have on a home page of one application a list view webpart. When a user click on the item title, a modal dialog is displayed to display the item. Is it possible to intercept the closing of the ...
2
votes
2answers
1k views

How to bring a value to SharePoint dialog

How can I bring a value to SharePoint Dialog to bind data. I call the dialog like this <input type="button" value="<%#((DataRowView)Container.DataItem)["Id"] %>" onclick="javascript:Open()...
2
votes
1answer
779 views

Error while closing Modal Dialog (JavaScript)

So I create a Modal Dialog with this code: function openModalDialog(title, url, callback) { var options = { title: title, url: url, dialogReturnValueCallback: callback ...
2
votes
1answer
411 views

OpenPopUpPage works for Chrome but not IE

I am at a lost why this works in Chrome but not IE. This is a link within a web part for SP 2010. <a href="javascript:ExecuteOrDelayUntilScriptLoaded(SP.UI.ModalDialog.OpenPopUpPage('/_layouts/...
2
votes
1answer
233 views

Change the Title on Document Library new item dialog

I have a document library where I only want users to upload images file types and nothing else. First question, when a user selects 'Browse', can I select the accepted extensions filter by default? ...
2
votes
2answers
835 views

How do i send user back to edit item dialog when event receiver comes back with an error

I am creeting an event reciever that ensure that my list has unique items based on two columns. If I find a duplicate I wish to do one of the following: display a dialog which states a duplicate has ...
2
votes
1answer
668 views

show modal dialog for list with opened ribbon

I need to display a standard list inside a modal dialog. Currently I'm using SP.UI.ModalDialog.showModalDialog(..) and I'm building the URL like this: options.url = "listform.aspx?PageType=0&...
2
votes
1answer
578 views

How to Close SPModalDialog & Refresh page from Code behind in SandBox solution?

I have Submit button in my SPModalPopup. By clicking submit button, after executing some code, I want to close the ModalDialog & Refresh the parent page. How can I do this ? I have tried ...
2
votes
1answer
282 views

Set the Column Value when show the NewListForm.aspx using SP.UI.ModalDialog.showModalDialog()

i want to set the selected SPList Title value when show the NewListForm.aspx using SP.UI.ModalDialog.showModalDialog(), could anyone help me to resolve this issue please?
2
votes
0answers
39 views

Display datepicker on top of the forms's modal dialog

I have a custom item edit form and I have a couple of DateTime properties that has to be filled at the bottom of the form (using datepicker): So when I click the mini calendar icon to choose the ...
2
votes
4answers
248 views

How to create a button with serverside event and clientside event?

I created a dialogWindow with a button OK. When someone click on OK, I would like to do some server side logic. After this I would like to close the dialog by returning: SP.UI.ModalDialog....
2
votes
0answers
51 views

Special character in SP.UI.ModalDialog option “Title” ignored/not accepted

I have a question regarding my ModalDialog. There is an option called title: options.title = 'Benutzer wählen'; Now if I display the dialog: var dlg = SP.UI.ModalDialog.showModalDialog(options); ...
2
votes
1answer
2k views

List forms (new/edit/view) not appearing in popup

We have deployed a SP2013 site via powershell and notice that the list forms do not open in popups rather they open as page. We created a new SP site via central admin SharePoint UI, Same problem. ...
2
votes
2answers
8k views

Trying to open a SharePoint List item in Modal Dialog in Sharepoint 2013 Office 365 (online)

Sorry for the long post. This has been killing me. I had this script working perfectly fine in SharePoint 2010 (online) and basically i have a source custom list (list A) with a hyperlink column and a ...
2
votes
4answers
10k views

How to get result from SP.UI.ModalDialog.showModalDialog back to C#?

I have a code on a visual web part user control (see below): Could you please advice, how to get value from the callback function back to the C# in code behind to process it? <script type="text/...
2
votes
1answer
234 views

Open MultiUpload modal form

Could you please tell me how to open a MultiUpload modal form, without using or displaying the single upload form? <script language="javascript" type="text/javascript"> $(function () { ...
2
votes
1answer
851 views

Pass values to default NewForm.aspx

I need to pass values from my list-view (calendar) to the default newform.aspx. As you propably know, you can click the "add" button on a day within the calendar view. Then the day get's automaticly ...
2
votes
1answer
252 views

Strange behavior opening items from view after upgrade SP1 2010

After installation of SP1 for SP2010, the items in libraries no longer displayed in a dialog. On the list is indicated that the items should be displayed in a dialog. After research I found out when ...
1
vote
3answers
68 views

How to remove s4-ribbonrow from modal-dialog without having any access to masterpage or SharePoint Designer 2013

I'm challenging myself for a few hours now attempting to remove the s4-ribbonrow from a modal dialog window (as marked in my screenshot). I found several solutions on the web, which all require ...
1
vote
2answers
292 views

Close modal dialog when no Close button

I've made a mistake by creating a modal dialog in CEWP code without a Close button. Now I have no way of closing the modal and so cannot access the page or edit the code in web part. I would of ...
1
vote
3answers
496 views

Close modal popup opened using SP.UI.ModalDialog.ShowPopupDialog(url)

Sharepoint promoted links webpart open in dialog opens the popup using SP.UI.ModalDialog.ShowPopupDialog(url) How do I close this popup using a custom button in the popup page SP.UI.ModalDialog is ...
1
vote
2answers
787 views

Modal Pop up to show SharePoint List items

I have a list called "XYZ" that stores users in it. I have a page with summary links web part that also has a link which would open a modal popup. This popup should show all the list items of "XYS" ...
1
vote
5answers
7k views

How to open a calendar item in a modal dialog?

When I add a new appointment to the calendar, for example "Appointment with dentist", then I get a modal dialog where I fill in all the details. This is good. The appointment is then visible in the ...
1
vote
3answers
3k views

Print from Modal Dialog

I would like to print everything in a newform.aspx/editform.aspx modal dialog. I was considering creating a Web Part or a bit of JavaScript that was nothing more than a print button that specified ...
1
vote
2answers
38 views

How to Open/Close a Sharepoint modal dialog using HTML instead of URL

I'm trying to open or close a SharePoint Modal Dialog. The dialog opens one time, but it doesn't open in the second time, I just get a weird title only box. Also I cannot figure out how to close the ...
1
vote
1answer
64 views

How to use SP.UI.ModalDialog on plain old HTML page

I have a plain HTML page (not aspx) that is hosted in my Sharepoint site Assets. Below is the source. <!doctype html> <html> <body> <button type=button onclick="openDialog()"&...
1
vote
1answer
330 views

Pass parameters to URL in SP.UI.ModalDialog

On load of my site I check if a user is 'registered' with the site (I need specific non-SP data about them which is saved in Users list). If not, then I show the NewForm.aspx page for Users list. &...
1
vote
3answers
8k views

how to open hyperlink list item in modal dialog box

I have created a datagrid using javascript. In that I am displaying top 4 items of my sharepoint list. Now I want to open hyperlink list item in modal dialog box on the click of that hyperlink. Please ...
1
vote
1answer
8k views

SP.UI.ModalDialog Close button

I have created a visual webpart in SP2013. and created a page and add that WebPart to the page http://server Name/Pages/survey.aspx to make this WebPart to show as a popup on the homepage every time ...