SCRATCH THIS – SEE CODE AT BOTTOM TO RESOLVE
When a users opens a child editform, from a parent form’s vlookup, and there are attachments in that form. The attachment opens in that pop up box and they lose where they are in the form.
Is there a way to force the attachment field of a child form (well any form really) to open in a new tab?
If not as a fall back I can get users to right click and open in a new tab manually.
I added this code and it worked..
$(document).ready(function(){
$("table#idAttachmentsTable a").attr('onclick', '').click(function (event) {
event.preventDefault();
var url=$(this).attr('href');
window.open(url, '_blank');
});
});
-
This topic was modified 4 years, 3 months ago by Paul Lynch.