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

1
vote
0answers
44 views

Why getElementsByTagName() return an empty collection?

I'm using javascript inside the console of Firefox and this method does not work as well as 'getElementsByClassName()'. I specifically added class attribute to my tags in order to access. Could ...
2
votes
4answers
245 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....
1
vote
0answers
89 views

Modal popup send values to parent window for dialog opened using SP.UI.ModalDialog.ShowPopupDialog(url)

Sharepoint promoted links webpart open in dialog opens the popup using SP.UI.ModalDialog.ShowPopupDialog(url). I am closing the pop using SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult....
0
votes
0answers
111 views

Using require.js with SharePoint 2013

I am working on a custom aspx page in a SharePoint site that I am trying to include Modal Dialogues on. I have figured out which SharePoint javascript files I need to load and the modal dialogue ...
0
votes
2answers
53 views

Modal dialog - new button to close modal

I have a modal dialog popup that is timed to appear once a week. What I now need to create is a button that closes the modal dialog - I want to hide the top right corner button and replace it with a ...
0
votes
0answers
27 views

Dialog box master page [Sharepoint Online]

I'm new to sharepoint and I'm struggling with the following problem. I want to display a dialog box with custom web page. I want to have one part for the main content and a panel with buttons below it ...
2
votes
2answers
459 views

Create a modal dialog popup on load which would appear only once a day

<script language="javascript" type="text/javascript"> SP.SOD.executeFunc('sp.js', 'SP.ClientContext', MyPopUp); function createCookie(name,value,days) { var expires; if (days) { ...
8
votes
2answers
802 views

Use SharePoint 2013 “Working on it…” during ajax call

I'm trying to use the SharePoint 2013 "Working on it..." during ajax call. This is the code: function ShowWaitDialog() { SP.UI.ModalDialog.showWaitScreenWithNoClose(SP.Res.dialogLoading15); } ...
0
votes
1answer
125 views

Open list form in either dialog or page depending on list setting via JavaScript

I am developing a custom copy item form for Sharepoint 2013. I have created a copy button for my list items so that the user can easily copy items. I put a button in list view form ribbon for this. ...
1
vote
3answers
102 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?
1
vote
2answers
785 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" ...
19
votes
5answers
24k views

SP.UI.ModalDialog.showModalDialog using the html option

http://msdn.microsoft.com/en-us/library/ff410058.aspx says that you can use the option html to display html text in a modal. I have a string like this; var html = '<div><strong>Test</...
0
votes
1answer
29 views

How to add Content Types List on a Page and use it to create NEW document/list based on type selected?

I need to show all content types in a drop-down or as hyperlinks along with description on custom .aspx page. When user selects any type, respective New Form should open to create a new document/list ...
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....
3
votes
1answer
535 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 ...
3
votes
6answers
15k views

SP.UI.ModalDialog.RefreshPage from the dialog itself?

I have customized the display form on one of my list. On a webpart page, I have drop a view to this list. When I click on the title of my item, the custom disp form is shown as expected in a modal ...
1
vote
0answers
56 views

How to send back form results to the Script Editor Web Part which displays the modal dialog

This relates to SharePoint 2013 Online. On my home page I have a SEWP which determines if currentUser has registered some details we need. If not then open a ModalDialog window displaying a form to ...
1
vote
1answer
328 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. &...
0
votes
0answers
77 views

Open InfoPath form with sign section on it in modal window

I have a InfoPath 2013 form from form library with signature section in it and I want to open it in a pop up modal window and sign it in the modal window. But SharePoint prevents opening the form with ...
0
votes
0answers
130 views

Modal Dialog doesn't work with Community Site Discussion

I am trying to add a button to a page showing a community site discussion that launches a modal dialog showing the page with the discussion and all replies but when I click the button the modal dialog ...
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 ...
0
votes
1answer
325 views

Sharepoint 2013 modal dialog trouble (master page)

Help me please. Something wrong with my own master page (edited Oslo.master). When Im trying to add user\permission my dlg window is empty (iframe content is absent). I can see Title only. But after ...
0
votes
1answer
235 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
2answers
120 views

Run code before Modal Dialogue closes

So I have been trying to write this code for SP 2010 to first bring up the newDocSet.aspx form for the user to create a custom Doc Set and then directly afterwards copy files into the Doc Set using ...
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); ...
0
votes
0answers
67 views

How to remove Master Page for treeview picker or date time picker controls in sharepoint? ms-dialogHidden is not working for such controls

The style ms-dialogHidden is used for hiding the unwanted master page header elements in modal dialog boxes. For more information: http://ericoverfield.com/sharepoint-2013-tricks-hide-elements-in-...
0
votes
1answer
55 views

Confirmation once a user has submitted a list form

We have quite a few lists on our sites where users fill out forms to add items to a list. One thing that has always bugged me (and my users) is once they fill out the form the dialog just goes away. ...
0
votes
1answer
465 views

Increase width for form modal dialog

How do I increase width of forms modal dialog? API provides a way to specify ModalDialog options: SP.UI.ModalDialog.showModalDialog(options) Method, however how do I increase width in case when I use ...
0
votes
3answers
541 views

SP.UI.Modal dialog pop up doesn't work in Internet Explorer

I have added a pop up box containing another page on my SharePoint site and it works fine in Chrome. When I click the button to open it in IE 10, however, the page just reloads and no pop up box ...
0
votes
1answer
313 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 ?
0
votes
0answers
34 views

Problem commonModalDialogClose Migration from Sharepoint 2010 to Sharepoint 2013

I have got two source codes: - First Javascript function OpenDialog8(strPageURL, width, height, title, args) { var dialogOptions = SP.UI.$create_DialogOptions(); dialogOptions....
0
votes
2answers
109 views

How to create a link that changes based on the list item id in Sharepoint 2013?

I am trying to add a pop up window in a document set that shows the start a workflow page in Sharepoint 2013. I can do this easily when I include the ID of the doc set in my URL but I would like to ...
0
votes
0answers
65 views

SP.UI.ModalDialog.showModalDialog(options); refreshes browser and closes dialog

I have created a page which uses a REST call to get the DefaultNewFormUrl and then I am trying to pass this to the modaldialog but for some reason the modal fires, starts to load and then the entire ...
0
votes
1answer
18 views

How to implement modaldialog with confirmation, when you click on yes, start a method in the code behind?

I have created an application page. On this page I have add some asp button with an event in the code behind. In the event I start some method. How can I make an confirmation when I click on this ...
0
votes
1answer
257 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 ...
0
votes
2answers
285 views

Open a SitePage in a Dialog in Javascript

I'm trying to open a SitePage in a Dialog. I currently arranged it for a Form of a ListItem, but when I apply the same code to a SitePage I get the following correlation error: An exception ...
2
votes
2answers
504 views

Open modal dialog from webpart in the parent page

I have written a SharePoint application which is embedded in a page as an AppPart. Now I want to open a modal dialog in the parent page. This code opens the dialog only in the current AppPart: ...
4
votes
2answers
4k views

Trying to redirect after closing Modaldialog, but parameters aren't set

I have a layouts page which creates a new site. I use SP.UI.ModalDialog to show the site. I've created the following js function I use to pop it up: function PagePopupAndRedir(fileUrl, fileTitle, ...
3
votes
3answers
551 views

Unable to close the modal dialog from c#

I have created one custom action. On clicking custom action, I am opening an application page as a modal dialog. The page will allow users to add the data of fields. I have placed two buttons in the ...
0
votes
1answer
108 views

Pop up a browse Site Content dialog through code

I recently watched a video which popped-up a SharePoint Dialog box (Webpage Dialog) to browse site content, and then return the selection value to a text box. Is it possible to invoke this dialog box ...
0
votes
1answer
211 views

How to create popup window like sharepoint

When you select an item, a popup window appears with its data, inside the window. How can I do that? It would be preferable to use JavaScript functions from SharePoint.
0
votes
1answer
47 views

Not able to call javascript function

I am adding an onclick event from code behind file to a hyperlink control. I am trying to call a javascript function ViewInModal from this onclick event. I am picking up a value from a grid view and ...
1
vote
1answer
68 views

Modal pop up not getting displayed properly

I have created the modal dialog box using the following javascript code : <script type="text/javascript"> function popThisUp() { var options = { url: "http://somehost/...
0
votes
1answer
2k views

“This content cannot be displayed in a frame” - SharePoint 2013 Deployment

I have developed a SharePoint-Hosted app which opens a new modal dialog in a list. On SharePoint Online it works without problems, but if I deploy the app on a SharePoint 2013 On-Premise system I get ...
0
votes
1answer
168 views

Sharepoint 2013 - open a second modal window from a first modal window

I have an aspx page opened in a modal. On button click I need to close the current modal and open a new one or just open the new page in the same modal. Any suggestions? Below is my code: function ...
1
vote
1answer
419 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 ...
0
votes
0answers
15 views

Custom form reloads in multiserver load balanced farm

I have my Web Application deployed in 2-3 environments and now it is deployed in production environment but it giving us a problem. Wherever there is modal dialog, it keeps reloading intermittently. ...
0
votes
1answer
112 views

How to display application web form in modal dialog?

I have the following code of application page formdem.aspx: <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %> <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> &...
0
votes
2answers
109 views

Open form in a model window

I have this code that opens a form from an image button and I want the form to open modally. <a class="ms-addnew" id="idHomePageNewItem" href="https://thisCompany.com/HR/PerfRev/_layouts/listform....
0
votes
0answers
198 views

Overrding the closing button on a list form modal dialog

I have a custom list form that opens within a dialog. What I need to do is the following: Override the closing button (X) by prompting the current user to see if they want navigate away from the ...