Questions tagged [modal-dialog]

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

1
vote
2answers
65 views

SP.UI.ModalDialog works only in Edit mode

I have a custom list in SharePoint 2013 with cascading drop downs for City and State fields. Due to the size of the lookup list, it takes a few seconds to fully load. During this time, it shows some ...
1
vote
1answer
950 views

ModalDialog // change title when dialog openned

I open popup modal dialog with something like this: openInDialog: function (dlgWidth, dlgHeight, dlgAllowMaximize, dlgShowClose, needCallbackFunction, pageUrl) { var options = { autoSize: ...
5
votes
2answers
571 views

Multiple File Upload in dialog box

I have custom button which opens a dialog box of out of the box page Upload.aspx of a document library. First I am getting the GUID of the library by REST API and then passing the URL to open it ...
0
votes
1answer
880 views

How to show a modal dialog without master page content?

I am migrating a sharepoint solution from Sharepoint 2010 to 2013, and so far everything works, but I'm stuck at one specific problem. In some lists, the user has the possibility to open an editor for ...
0
votes
1answer
926 views

Modal Dialogue Behavior On Close

I'm using a modal dialogue to display list data formatted by DataTables. Within the table are links to another modal dialog to edit items in the first modal dialog's table. I'm turning on the save ...
0
votes
2answers
988 views

SP.UI.ModalDialog Namespace or Reference

Is there any server side reference for SP.UI.ModalDialog? What is the reference for SP.UI.ModalDialog for client side? How i reference this in webpart?
2
votes
1answer
258 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
2answers
7k 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 ...
1
vote
0answers
769 views

Modal Dialog Delegate Event not firing

I have a modal dialog that I call from my sender page: function openCommentsDialog( ITEMID) { var DropDownListValue = document.getElementById("HideVal").value; var options = SP.UI.$...
0
votes
1answer
1k views

How to download SP.UI.Dialog.js?

I have got same Modal Dialog on Sharepoint 2010. If I tried to migrate to Sharepoint 2013 I must download SP.UI.Dialog.js How Could I do it ?
1
vote
2answers
30 views

Display template: modal dialog not working with .onclick()

I'm trying to get a SP.UI.ModalDialog to work if a user clicks on a link on a site collection. I'm implementing the code in my item display template. Unfortunately, clicking on the link does not pop ...
0
votes
1answer
9 views

Disable Fabric UI JS Dialog Auto-Refresh

I am using the Fabric UI JS components on a SharePoint 2016 project (not using React or SharePoint Framework) and having issues with the dialog box buttons refreshing the page upon click. Reviewing ...
1
vote
3answers
436 views

On click of Summary Link want to open a modal popup

I have a Summary Link web part. On click of one of the links in the webpart I want an aspx page to be opened as a modal pop up. The challenge is where to put this javascript code?
0
votes
0answers
14 views

Is it possible to open a modal dialog box with in an Infopath form published to SharePoint Online

I have created a pretty large InfoPath form, the problem is I cannot use the form to gather a vote during a meeting since you cannot collaborate in the InfoPath form. I want to have a button on my ...
0
votes
2answers
62 views

How to pass and capture query string parameter to newform in modal dialog?

My modal dialog for newform is not capturing the query string value I'm trying to pass to it. Alert on main page confirms the qs value for XID is set correctly. var xid = GetUrlKeyValue("ID", ...
0
votes
0answers
24 views

Not able to open document in Client Application in IE Edge Sharepoint 2016

we are using following code to CLose modal popup and navigate user to open Document in SharePoint 2016 OnPremise. Context.Response.Write(String.Format("<script type='text/javascript'>window....
1
vote
1answer
1k views

Override Modal Dialog Box CSS in SharePoint

I would like to override Modal Dialog Box CSS in SharePoint 2013.I using Below CSS in the Content Editor Web part of the Particular list Newform.aspx.But Its not overriding existing CSS. iframe .ms-...
0
votes
3answers
4k views

SPO 2013 - Open calendar items in a modal dialog

We are using O365/Sharepoint Online 2013. We are using the Sharepoint Calendar as a lightweight general event reminder. We would like to have items opening in a modal dialog instead of a new page. I ...
3
votes
2answers
58 views

IsDlg=1 causes no content to be displayed in dialog

We are having a problem that has apparently been an issue for a while on all of our SP 2013 sites. Any dialog marked with IsDlg=1 shows no content at all whatsoever. Meaning a thin white dialog is ...
4
votes
3answers
2k views

Custom .aspx as modal dialog not working: 'SP' is undefined

SharePoint 2013 server... I have created a custom aspx page for use as a modal dialog. I want this pop up to collect field values and return them to the form the pop up was called from. The pop up ...
0
votes
1answer
626 views

Refresh parent page after calendar event creation

I have created a new page with a default calendar webpart. Below is what I'm doing. Click New Event and the popup gets opened Fill-in the event details Click Save and the event gets saved Calendar ...
0
votes
2answers
722 views

Open SharePoint form in dialog box on button click

I need to open a SharePoint form from an image button but in a modal dialog box. Is that possible? Thanks in advance
3
votes
1answer
641 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
156 views

Using TypeScript global variable with SharePoint functions

Using TypeScript and Angular, I have created a function named getTasks() that I want to fire when a modal is closed. This is the function: getTasks() { this.http.get(`https://example.com/_api/web/...
0
votes
2answers
839 views

SharePoint Online: Display form (Newform.aspx/Upload.aspx) instead of Pop up dialog for uploading documents in a document library

My current environment is SharePoint Online. I want to customize (Newform.aspx/Upload.aspx) for a document library and want to show user a customized form instead of popup dialog after uploading ...
0
votes
2answers
1k views

Easiest way to design a wizard-style modal dialog?

I would like to learn about what options I have if I want to design a modal dialog with a wizard that can call custom back-end C# code (I've never done front-end SP development). There seem to be ...
0
votes
1answer
726 views

Save Modal Dialog Field Value to Refresh Page DIV

I found a couple great functions that allow me to programmatically call up a modal edit form, and they work very well. What I'm looking for is a way to update a div on the calling page with the ...
0
votes
1answer
783 views

Sharepoint 2013 Modal Dialog title

I'm using SharePoint 2013 When I open view/edit item in a list the modal window displays the 'list title' and the 'item title' at the top of the window Is there a way to change the 'item title' in ...
2
votes
1answer
832 views

Sharepoint dialog open event

I have an initiation form for my workflow. The form uses a people/user picker. This picker opens a dialog, in that dialog the div in which list of people appears comes with a small height in Internet ...
0
votes
2answers
1k views

Uncaught TypeError: Cannot read property 'cancelPopUp' of null in sharepoint hosted app

I referred the following link https://alinimer.wordpress.com/2013/02/25/open-pages-and-forms-in-modal-dialog-for-sharepoint-2013 to create a modal pop up . I am able to create a pop up for the new ...
2
votes
2answers
1k views

Pop Up On Load SharePoint 2013

I am trying to get a modal to appear when the site loads. I created a site page called Disclaimer.aspx and stored it in the Site Pages document library. I created a text document called popup.txt ...
0
votes
4answers
2k 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
1answer
47 views

Open dialog/modal from another modal (DispForm.aspx)

I have a code that opens any DispForm.aspx link into a modal dialog. The item has a link to another DispForm.aspx -- is it possible to open this on another modal? I tried inserting the following code ...
3
votes
1answer
622 views

Getting “This content cannot be displayed in a frame” on all dialog forms

Environment: SharePoint Server 2010 We have a web application, in which there is only 1 site collection with few subsites in it. The problem is all the modal dialog forms when opened get error ...
2
votes
1answer
8k views

SharePoint 2013 - open a modal dialog form by clicking an image on the page

I would like to open up a user form in a pop-up window by clicking on an image in the page. I have tried adding code to the source editor, but it just gets stripped. There is much talk of SP.UI....
1
vote
0answers
39 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 ...
3
votes
1answer
687 views

Popup confirmation on 'status' column change

I'm looking to create a popup dialogue box when a column called 'Status' is set to 'Complete'. I want a popup box to ask "Confirm Complete?" with Yes or Cancel choices. Obviously Yes will update the ...
0
votes
1answer
62 views

Open hyperlink in modal dialog on sitepage

I'm having trouble opening hyperlinks in modal dialog on a sitepage. My list contains a column with hyperlinks. I have tried everything, but can't seem to make it work. On the actual page of the ...
1
vote
2answers
210 views

InfoPath 2010 form text wrap issue on my SharePoint site

So I have an InfoPath 2010 form with a multi-line textbox that won't wrap text in Firefox or Chrome the text just continues on the same line. On IE, the text wraps properly. I've published this ...
2
votes
2answers
235 views

100% width for image in modal dialog

I want the image in my modal dialog to be width:100%, but do not know how to do it. I'm using this code (thank you Mohamed El-Qassas): <script> function openDialog(pageUrl) { var options = { ...
0
votes
2answers
72 views

Color picker dialogue box not sizing correctly

Note: I am using a custom masterpage. Problem: When I use the color picker to change some font color and select "more colors…", the modal dialogue box that comes up is too small and has scroll bars. (...
1
vote
1answer
1k views

Refresh parent page after closing list item dialog

I'm trying to refresh the parent page of a list when closing the dialog of a list item. Is there a way to achieve this with javascript somehow? I inspected the button in the DOM and tried to write a ...
1
vote
2answers
493 views

Control redirect on saving new Document Set with NewDocSet.aspx

Does anyone have any experience with controlling the redirect when creating a new document set with NewDocSet.aspx? Our client would like the ability to create a new document set and be returned to a ...
1
vote
0answers
51 views

Parent/Child List: go back to Modal Parent dispform after child form submit/save

My need is very close to something already treated like this topic but the solutions doesn not seems to work on Modal/Dialog forms. In my context, I have a parent list ("projects") and a child list ("...
1
vote
1answer
72 views

How to remove all handlers from dialog's close button?

When any user clicks the close (X) button of the list edit form, I want to prevent closing it and to show an additional submission dialog. For this purpose I tried to remove all event handlers from ...
4
votes
3answers
10k 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 class="ms-...
0
votes
1answer
21 views

How to show search result hyperlinks in Modal dialog

Can anyone help me with issue about opening search result hyperlinks in modal dialog page. In default every pages are opening in separate html page. Im aiming to same dialog as is used in list ...
1
vote
0answers
46 views

Execute DialogResult.OK After Form Submission [closed]

I have a question regarding Nintex Forms 2013. I'm opening the new item form using SP Modal Dialog, after clicking submit I want to run the below line. SP.UI.ModalDialog.commonModalDialogClose(SP.UI....
0
votes
0answers
44 views

SharePoint Online - Attach Modal Dialog to Button Div

I am trying to work out how to attach a modal dialog to a Button Div in SharePoint Online Script Editor Webpart. Modal Code Originally I had this code to open a Modal Dialog: <a class="xxx" style=...
1
vote
1answer
2k views

SharePont 2013 Lightbox for Picture Library

Anyone who can help implement the lightbox plugin to a sharepoint picture library. Thanks in advance.