none
URL to open modal dialog dispform.aspx RRS feed

  • Question

  • In trying the IsDlg=1 parameter to open an task in a modal dialog form, it appears to do nothing.  I still get the item opened in a full screen mode.  Is there something else required to open the modal dialog for DispForm.aspx or EditForm.aspx in 2010? 

    I am attempting to provide a hyperlink in an email to open a task item in the standard modal dialog to provide consistency.

    Thanks in advance for any assistance.

    Friday, July 1, 2011 12:17 PM

Answers

  • The modal dialog dispform.aspx in SharePoint assumes that you are opening it over an existing web page, because modal dialogs in SharePoint are actually a full web page that uses a specific master page to make it look like a modal dialog.  But its still a full web page.  So you can't open just a modal dialog window from within an external application like an email client. 

    The workflows that implement that kind of logic are actually using InfoPath forms rather than regular ASPX forms.  InfoPath forms can be opened inside Outlook and look like dialog boxes when they are opened.

    So the short answer is that you can't accomplish what you are trying to do using the modal dialog framework in SharePoint. 


    Paul Stork SharePoint Server MVP
    • Marked as answer by jd_hancock Friday, July 1, 2011 3:14 PM
    Friday, July 1, 2011 12:27 PM

All replies

  • The modal dialog dispform.aspx in SharePoint assumes that you are opening it over an existing web page, because modal dialogs in SharePoint are actually a full web page that uses a specific master page to make it look like a modal dialog.  But its still a full web page.  So you can't open just a modal dialog window from within an external application like an email client. 

    The workflows that implement that kind of logic are actually using InfoPath forms rather than regular ASPX forms.  InfoPath forms can be opened inside Outlook and look like dialog boxes when they are opened.

    So the short answer is that you can't accomplish what you are trying to do using the modal dialog framework in SharePoint. 


    Paul Stork SharePoint Server MVP
    • Marked as answer by jd_hancock Friday, July 1, 2011 3:14 PM
    Friday, July 1, 2011 12:27 PM
  • There is Javascript Library that causes the page to be open in Dialog. When you click New Item in ribbon it trigger those javascript events using Modal Dialog Framework it opens a page in dialog. And adds IsDialog=1, so you can check if the page is being opened in a dialog. Just passing IsDialog=1 wouldn't make sharepoint to open page in dialog.

    Friday, July 1, 2011 12:28 PM
  • Thank you both.  Perhaps it will be fixed in the future.
    Friday, July 1, 2011 2:43 PM