- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 07:42 PM
Hi,
I'm having a problem with my custom table. I just want at the custom table after adding an Attachment, then only show [View] after the file, no need to show [download] and [rename] . Does anyone know how to do it.
Thank.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 08:30 PM
Hi @Chronos ,
As you want it to be disabled for a specific custom table DOM manipulation is the way.
Write an onLoad client script for that table and place the following two lines in it.
jQuery("a.attachment:contains('[rename]')").hide();
jQuery("a.attachment:contains('[download]')").hide();
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 08:30 PM
Hi @Chronos ,
As you want it to be disabled for a specific custom table DOM manipulation is the way.
Write an onLoad client script for that table and place the following two lines in it.
jQuery("a.attachment:contains('[rename]')").hide();
jQuery("a.attachment:contains('[download]')").hide();
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 08:37 PM - edited 04-13-2023 08:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 08:54 PM
Hi @AnveshKumar M ,
My mistake, I forgot to add Attributes [Use Document Viewer] for custom table.
Thanks for your help.