AnsweredAssumed Answered

Override default action (file download) for Hyperlink:  Accounts->Documents->{FileName}

Question asked by Frank Cannon on Oct 7, 2015
Latest reply on Oct 7, 2015 by Frank Cannon
Using Version 7.6 Ent

I've got a custom javascript in place to listen for the click event on the hyperlink located within Accounts->Documents->{FileName}. Where the default action is to download the file whenever that hyperlink is clicked.

My function is called each time the hyperlink is clicked and is working nicely.  However, I'm unable to stop the file from downloading even after using:

e.stopPropagation();
e.preventDefault();

Can someone tell me how to override the default action?  I don't want the file downloading.

This is the hyperlink:

<a class="ellipsis_inline" data-placement="bottom" title="" href="javascript:void(0);" data-url="rest/v10/Documents/2943e377-8367-c2da-7004-56152dd6fbb3/file/filename?force_download=1&amp;1444246298258=1&amp;platform=base" data-action="download" data-original-title="specflow.tiff">specflow.tiff</a>


Thanks in advance...

Outcomes