Change Table Field Column Value to Another Value

I have a table that displays a list of documents/files.  Instead of having one column display the "Title" of the document, and another column displaying the actual link to the file, I would just like the file (link) column to display the title, instead of the file name.

If I do this:

// Change Document file link text
$(document).on('knack-scene-render.scene_XXXX', function(event, scene) {
$(".kn-view-asset").html("View File")

It replaces the filename with "View File", which is a start, but how do I make it display the value of another field instead?

Thanks for any assistance!

The code was working for a couple of hours but now it's not.  Jason K. did you find a fix and if so could you please share it?

thanks much,


Hi Tony,

Thanks. I will reach out to you shortly on this.

Hi Tony,

I never got the chance to follow up on this, but I am having issues with it.  Seems to only work about 10% of the time.  The rest of the time, the page itself hangs and never loads.  I check the browser's inspector, and it gives this message:

Uncaught TypeError: Cannot read property 'getElementsByTagName' of undefined

If I keep hitting refresh, then eventually it may come up properly.

Any idea what might be going on here?  Hangs on both desktop (Chrome) and mobile (iOS/Safari). I did not change anything from what you posted. Weird.

Works perfectly. Thank you again Tony. Stay safe.

Hi Tony,

Thank you very much. I really appreciate the help here. This works great on a computer.  Question though, any idea why it would not work on a mobile browser (specifically Safari on iOS)?  It works perfectly in everything I have tried so far on a desktop (including Safari on macOS), but in iOS the filename still shows.  Hiding the other column does work fine in iOS, however.

Again, thank you very much what you have shown so far.  This is a huge help.