Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
9 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
37 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
22 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....
3
votes
2answers
39 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 ...
2
votes
1answer
89 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/...
1
vote
1answer
45 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
39 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 ...
1
vote
0answers
36 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 ...
0
votes
1answer
58 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 ...
2
votes
2answers
193 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
63 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
0answers
41 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
58 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 ...
0
votes
1answer
19 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
44 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
40 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=...
0
votes
0answers
45 views

Want to show Listitem display form in modal popup in Tiles webpart Hover in sharepoint 2013

I have a requirement like Want to override the Default Tiles Webpart(Promoted Links Webpart) Hover and show the modal popup in Tiles webpart Hover in sharepoint 2013.How could we achieve this ...
0
votes
0answers
33 views

Map Marker Modal Dialog to List Item

I am using the below string of code to display an InfoWindow (bubble) for a map marker. I have a "Details" link that opens the list item associated with the map marker in a new tab. Ideally I want ...
0
votes
2answers
752 views

Why does SharePoint 2013 modal add “?IsDlg=1” to querystring

I am trying to create a modal that generates off of a link. When the link is clicked, the modal pops-up but I get the error, "An unexpected error has occurred". When I dive deeper, I find out that ...
0
votes
1answer
84 views

Open modal dialog using javascript stripped from code

Sorry for the Newbie question, but I don't see a relevant answer in searching. I have a SP Online site with a sub-site for Human Resources (HR). I created a custom list for employee feedback for ...
2
votes
1answer
238 views

How to change state in webpart.tsx from wepart.ts property pane - SPFx

I am trying to add a button to my property pane that will pop up a modal where the user will be able to enter in an image to be displayed on my banner webpart which is just an image carousel. I ...
1
vote
1answer
104 views

Calculated column with hyperlink to open items in modal works only on the 1st page of list view

In SharePoint 2013 I have a Site page with list view web part that contains calculated column. In this column the following function is executed to be able to open items in modal: $(document).ready(...
0
votes
1answer
57 views

Calendar Overlay Modal mode

I have looked through quite a few posts and questions on the site here which suggest that I can insert code into a CEWP to open calendar items "Modally" instead of opening in a new page. The issue ...
1
vote
2answers
646 views

How do I create a hyperlink directly to a Sharepoint 2013 list new form dialog?

I have a list that opens items in the modal dialog boxes. Now I would like to have a link on another page that will open the dialog for the new item form. Tried a lot of other suggestions here and ...
0
votes
1answer
512 views

Modal dialog ID of parent dialog

I have a list and a document library (List A and document library B), both opens in dialog. Document library B has a lookup column targeting list A. On the display form on List A the document ...
0
votes
1answer
74 views

Javascript - How to include javascript session?

Currently working on a JavaScript on a SharePoint home page. The script below will popup a window that shows a message: "Welcome to new page." However, it is going to be annoying if it appears every ...
0
votes
1answer
90 views

cannot bind to Sharepoint Modal Button with jQuery

I am attempting to bind to the file attachment OK button which has an id of c100_PlaceHolderMain_btnOK. I've tried $('#ct100_PlaceHolderMain_btnOK').click(function() { }); and $(document).on('...
0
votes
1answer
129 views

how to target Sharepoint 2013 Modal OK Button click event immediately AFTER button click not after file upload finishes?

I am using the SP file attachment modal to attach files to list items and I am having an issue with trying to target the OK button click event. I know I can use the dialog callback once it finishes,...
0
votes
1answer
63 views

SPO - open <a>hyperlink in modal

I'm using SharePoint Online I found this link on how to open a hyperlink in Modal -- but how do I apply it in my tag? clicking the link doesn't do anything. <script> function ...
0
votes
1answer
81 views

Customizing SP Attach File Modal

I was wondering if it is possible to have BOTH an html and url included in the options you pass to SP.UI.Dialog for the Attach File dialog. I can embed the link into a div but it shows the entire ...
0
votes
1answer
330 views

SP 2013 Custom form and embedding attach file dialog in a modal(No Sharepoint Designer)

I have a custom form where users have an option to upload attachments to a list item. This works without issue, however, I would prefer if I could use ASP in the HTML to embed the SP attach file ...
2
votes
0answers
111 views

SharePoint Modal Survey close redirect to another site

I am trying to display a modal survey question from the home page of my site. I have that working, what I am looking for is how to upon click of the finish button redirect to a tableau site. I do ...
3
votes
1answer
567 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
7k 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
1answer
282 views

Modal dialog not displaying SharePoint page

I am working with SharePoint hosted apps, and I require to display the default SharePoint version history page of a list item in a modal dialog popup. (url/_layouts/15/Versions.aspx?list={"+listId+"}&...
1
vote
1answer
239 views

URL > modal dialox box in Sharepoint 2016

I have a created a list via the Promoted List chart which contains the LinkLocation as the URL for the specific file. When viewing the list in the TILE view, it opens the links in modal box but when ...
3
votes
3answers
104 views

Add a Page using custom master page

I have recently created a custom master page for a SharePoint 2016 environment. My issue is that it is now showing on Pages like Add a Page, which is not ideal. Is there anyway i can change this so ...
0
votes
2answers
775 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 ...
1
vote
0answers
75 views

How run custom actions for list on subsite

I made new solution for custom actions run by on custom ribon. Code from eventreciver: public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPWeb web = properties....
4
votes
1answer
536 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
2answers
700 views

Sharepoint button not opening modal dialog box when calling javascript function

I have a javascript file saved in my site assets that i can get to run (I ran an alert box to test), but I can't get the function inside of it to run. Here is the code for the button... <button ...
0
votes
1answer
49 views

Button Link to Modal in Template - Relative URL

Good Morning!~ I have a button on a page that brings up the modal newform for a Questions and Answers list. javascript: var options=SP.UI.$create_DialogOptions();options.url='https://server/sites/...
2
votes
0answers
127 views

Maximize button missing from form dialog boxes on SharePoint 2013 (patched up to 8/18/2017)

I posted in an older post but am concerned the information might be outdated so I wanted to create a new question. I'm using the following script in hopes to add the maximize button back to every ...
1
vote
0answers
133 views

How to implement ModalDialog.showWaitScreenWithNoClose in Sharepoint Online using CEWP in custom list?

I am new to Sharepoint developing/web development and I am trying to create a "loading..." box to occur until the page is finished. I want to use the Sharepoint modal dialog that is already available ...
2
votes
1answer
447 views

Open full .aspx web page in modal dialog box

I have searched everywhere to find a solution for opening an entire .aspx web page inside a modal dialog box. I do not want to open a specific web part, I would like to embed the entire page, with all ...
0
votes
1answer
24 views

Read value in textbox on mail page from newitem form

I have a calendar view and I have some textbox with user values. When I click on the +AddItem value I want to use this data in the main form to validate some text fields. I need to read the <input ...
0
votes
2answers
651 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
7
votes
1answer
353 views

CORS problems upload.aspx dialog

I'm trying to upload a file and to show the Upload.aspx dialog from an external web site. I have this code: function openUploadNewDocumentDialog(passingID) { var dialogOptions = SP.UI.$...
0
votes
1answer
443 views

SharePoint Online / Open URL in modal

I'm using SP Online with Oslo layout. The home page has a hyperlink (i.e.<a href="..../newform.aspx">Create Your Profile</a>) Is there a way open the URL in modal? I found similar ...
4
votes
2answers
123 views

Navigation as per Sharepoint user group

I have an edit form that opens up in a modal dialog box. I need to navigate it to different forms on SAVE/CANCEL clicks as per the user-group of currently logged in user. For eg, project leaders to ...