Files in a table(grid) view

Agreed, this would be a handy addition natively. Long file names can cause the column to be wider than desired.
You may find the below video of use, it was inspired by a post on this forum a while ago. It’s a simple code based solution, it has to be simple as I’m not a coder :man_technologist:

//Change the File field to View link
$(document).on(‘knack-records-render.view_xxx’, function (event, scene, records) {
$(“#view_xxx”).find(“td.field_yyy”).each(function () {
if ($(this).text().trim() !== “”) {
$(this).find(“a”).text(“”);
$(this).find(“a”).append(“<i style="vertical-align: baseline !important;" class="fa fa-file-pdf-o"> View”);
}
});
});

Original thread :thread:

You may also find this thread by my college @StephenChapman helpful:

1 Like