open hyperlink field in dialog
- This topic has 1 reply, 2 voices, and was last updated 6 years, 5 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › General discussion › open hyperlink field in dialog
Tagged: hyperlink dialog
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?
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