open attachment in new form but delte in _self
Posted: 12 Oct 2021
Hello,
I've adapted the attachments control with the following Java script:
Which works fine for displaying an attachment in a new browser window but it also sets the delete link to target _blank which blocks the delete function - is there a way to only adapt the link of the attachment to be opened in a new window(_blank) and leave the delete link as it originally is?
best regards
Christian
I've adapted the attachments control with the following Java script:
Code: Select all
fd.field('Attachments').control()._el().find('a').removeProp('onclick').prop('target','_blank');
best regards
Christian