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.

1 Answer 1


You can use SharePoint dialog API for displaying Popup's.

Below is a utility function you can use. Pass the page URL you want to display as a popup

function ShowDialog(url) {
    var options = SP.UI.$create_DialogOptions();
    options.url = url;
    options.height = 300;
  • SP.UI.ModalDialog is not shown - I use firebug. I only have:
    – XristosK
    May 12, 2015 at 12:34
  • Check file SP.UI.Dialog.js is loaded. May 12, 2015 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.