AnsweredAssumed Answered

Opening attachments on list form in new tab

Question asked by GarethJ1 on Aug 3, 2018
Latest reply on Aug 17, 2018 by GarethJ1

Hi everyone


I have a list form where users can add attachments.  When they open the display form that has attachments on there, clicking the attachment opens it in the same window as the form.  I wondered how I can get the attachments to open in a new tab or window instead.  I've tried adding the following to my form but it doesn't seem to be working:



$("table#idAttachmentsTable a").click(function () {

var url=$(this).attr('href');, '_blank');




Does anyone have any advice on what I'm doing wrong, or another way of achieving this?


Thanks in advance for your help.