Get a Favicon to display on a Link (and File) field types

I want to replace the long URL display on a Link field with a favicon.

This JS works on the File field type, but not on the Link field type:

//Change all document links with a paper clip//
$(document).on(‘knack-view-render.any’, function(event, view, data) {

I need similar JS for a Link type field.

Tx in advance!!!

Hi @Marc, no JS required!
You can add the favicon code directly into the field settings like below:
<i class="fa fa-paperclip"></i>

It should look something like this in the front-end:

1 Like

Fantastic! Thanks so much for pointing this out.
Knack should do the same for a File field type.