How to open a list item in popup? RRS feed

  • Question

  • Hi All,

    In a list, there is one hyperlink item. If click that hyperlink item, it should open in popup. How to achieve this?

    • Edited by SamDany Tuesday, November 26, 2013 12:53 PM
    Tuesday, November 26, 2013 12:41 PM


All replies

  • Hi Sam, if I understand you correctly you want a link to open in a new window. You can achieve this by making the column an enhanced rich text field so it can handle the below code/link. First use a content editor. Select to edit it. Click on the body of the content editor and choose to edit the html in your ribbon. Put in the code below (modifying the link and the title).

    <p><a href="http://yourlink.com" target="_blank">Link Title</a></p>
    Save the work. The link will appear in your content editor. Highlight the link and copy it. Then go back to your rich text field and paste the link. The link will now be in your list and will open in a new window.

    cameron rautmann

    • Proposed as answer by D Lowe Tuesday, November 26, 2013 10:05 PM
    Tuesday, November 26, 2013 1:24 PM
  • Actually, In a list i had a item as a hyperlink. If i click that hyperlink, it should open in dialog box. How to get this?
    Wednesday, November 27, 2013 5:44 AM
  • Hi Sam,

    You can try SP.UI.ModalDialogu.showModalDialogu(option) method, see link below.


    Wednesday, November 27, 2013 6:10 AM