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

Filter by
Sorted by
Tagged with
1
vote
1answer
23 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
0answers
22 views

SPFX open newform in modal

I'm new in SPFX and i'm trying to open a new form from a button. I'm testing IFrameDialog but it doesn't display it(https://sharepoint.github.io/sp-dev-fx-controls-react/controls/IFrameDialog/) I've ...
0
votes
1answer
13 views

Why is modal popup reloading my sharepoint page?

I am pretty new to HTML/CSS and know nothing about Javascript. On my sharepoint page I want visitors to be able to click on a link and for it to open a popup with just a title and text. After doing ...
0
votes
2answers
34 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 ...
2
votes
1answer
118 views

window.frameElement.commonModalDialogClose(); works in Chrome but not in Internet Explorer

I have a site that opens a modal dialog within it when the site refreshes. To close the modal dialogue via JavaScript I wrote window.frameElement.commonModalDialogClose(); which works perfectly ...
0
votes
1answer
27 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 ...
0
votes
0answers
19 views

SPO BS4 using Modal

I have added to my site script editor web part for modern pages built in React. I am trying to use this web part to customize a page using BS4,i have added in the editor a BS modal. After adding the ...
0
votes
0answers
36 views

Canceling Modal Dialog, not able to open the Dialog box again

I have a modal Dialog Box confirmation and it works fine if I click Ok. However, when I click cancel (lets say a user changes their mind) and decides a couple minutes later to activate the modal, ...
1
vote
2answers
96 views

Update a list item from a custom Modal Form

I created the Modal Form where it captures the user id information and a date stamp (date()). Now I want to submit to update an item list. Below is the code. Everything is working as it should, ...
0
votes
1answer
23 views

Using Modal Pop up but it automatically refreshes page

I used the following technique to create a Modal Pop up on my SharePoint Page: https://jqueryui.com/dialog/#modal-form It works create but when the Modal dialog screen appears, it refreshes on its ...
0
votes
1answer
30 views

Create a new folder with custom content type id using custom action

I am adding a custom ribbon button which needs to create a folder with specific content type id in a document library. CommandAction="javascript:{ var options = { ...
1
vote
2answers
98 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
70 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 ...
0
votes
2answers
439 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", ...
3
votes
2answers
108 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
766 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/...
2
votes
2answers
214 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
124 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
92 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
176 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
775 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
199 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
76 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
184 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
40 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 ...
0
votes
0answers
46 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
2k 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
230 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
674 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
226 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
76 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
1k 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
643 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
210 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
110 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
193 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
109 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
121 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
556 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
164 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
1k 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
12k 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
414 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
373 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
107 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 ...
1
vote
2answers
1k 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
94 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....
5
votes
2answers
791 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
844 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
63 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/...

1
2 3 4 5
8