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
0 votes
0 answers
5 views

hide lists file when using open dialog in msword

How do we hide list of files when open up file dialog in MS Word from SharePoint site? I've snipped it using fiddler and it calls {root SharePoint site}/_vti_bin/owssvr.dll?dialogview=FileOpen&...
  • 305
0 votes
0 answers
63 views

Modal JS not working in Chrome for Calendar CEWP

On a site page, I have a Calendar CEWP and the following JS in a script editor. The calendar events pop up in a modal in IE but they do not in Chrome. Can anyone identify why it is not working in ...
0 votes
1 answer
128 views

SP.UI.ModalDialog.showWaitScreenWithNoClose TypeError: a.indexOf is not a function

I'm getting TypeError: a.indexOf is not a function when calling showWaitScreenWithNoClose(). I'm trying to wait until all necessary scripts are loaded, my code is essentially: $(document).ready(() =&...
  • 12.5k
0 votes
1 answer
691 views

Modern List Form to Open In a Dialog

I know in the modern experience, the form for a new list item already opens in the same window as the list. I am curious if it is possible to have it open in a dialog box like the classic list ...
  • 113
0 votes
0 answers
131 views

Where is the NewForm, DispForm, and EditForm on SP 2019?

Trying to find out where the New, Disp, and Edit form pages are on SP 2019. Migrating from 2016 to 2019 and we had some customized forms using JavaScript. The 2016 pages used CEWP to add the ...
  • 307
3 votes
1 answer
2k views

SharePoint Online modern layout and PopUps / Dialogs

Since SharePoint Online Modern Layout it isn't possible to have links and buttons to open a link in a popup/dialog. There is no possibility to add own code and the web part for buttons allows no ...
1 vote
1 answer
78 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
1 answer
196 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
2 answers
77 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 ...
  • 211
2 votes
1 answer
476 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
1 answer
37 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 ...
  • 1,159
0 votes
0 answers
53 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, ...
  • 307
1 vote
2 answers
210 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, ...
  • 307
0 votes
1 answer
26 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 ...
  • 307
0 votes
1 answer
99 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
2 answers
206 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
1 answer
182 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
2 answers
958 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", ...
  • 393
3 votes
2 answers
155 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
1 answer
2k 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/...
  • 151
2 votes
2 answers
340 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 ...
  • 77
1 vote
1 answer
222 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
0 answers
108 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 ...
  • 1,219
0 votes
1 answer
514 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 ...
  • 15
2 votes
2 answers
2k 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
2 answers
268 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. (...
  • 5
1 vote
0 answers
102 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
1 answer
273 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
1 answer
72 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
0 answers
50 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 ...
  • 439
0 votes
2 answers
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 ...
  • 211
0 votes
1 answer
421 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 ...
  • 295
2 votes
1 answer
1k 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 ...
  • 23
1 vote
1 answer
272 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
1 answer
115 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
2 answers
2k 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
1 answer
749 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 ...
  • 1,219
0 votes
1 answer
292 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 ...
  • 109
0 votes
1 answer
126 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('...
  • 207
0 votes
1 answer
255 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,...
  • 207
0 votes
1 answer
155 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
1 answer
126 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 ...
  • 207
0 votes
1 answer
684 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 ...
  • 207
2 votes
0 answers
185 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 ...
  • 65
3 votes
1 answer
2k 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 ...
  • 5,973
2 votes
1 answer
14k 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
1 answer
443 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+"}&...
  • 71
1 vote
1 answer
519 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 ...
  • 195
3 votes
3 answers
112 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 ...
  • 71
1 vote
2 answers
2k 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 ...
  • 489

1
2 3 4 5
8