open hyperlink field in dialog

Forums General discussion open hyperlink field in dialog

Viewing 1 reply thread
  • Author
    Posts
    • #30301
      Jeff Lynch
      Participant

      I have a simple hyperlink field and when I display it in the diplay or edit forms it launches in the same window. The behavior I would prefer is to launch a dialog. Is this possible?

    • #30325
      Alexander Bautz
      Keymaster

      Hi,
      In DispForm it will open in a new form won’t it? If you set it readonly in EditForm / NewForm it will NOT open in a new window, but if you add this to your Custom JS in EditForm it should work:

      jQuery(".ms-formbody").on("mouseover",".dffs-readonly-inner",function(){
          jQuery(this).find("a").attr("target","_blank");
      });

      Let me know how this works out.

      Alexander

Viewing 1 reply thread
  • You must be logged in to reply to this topic.