Not Show [download], [rename] . Only show [view] in header attachment in custom table.

Chronos
Tera Contributor

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.

Chronos_0-1681440010099.png

 

1 ACCEPTED SOLUTION

AnveshKumar M
Tera Sage
Tera Sage

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();

 

 

 

 

Thanks,
Anvesh

View solution in original post

3 REPLIES 3

AnveshKumar M
Tera Sage
Tera Sage

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();

 

 

 

 

Thanks,
Anvesh

Hi @AnveshKumar M ,

Thank for reply, can hide them, but not show [view].

Chronos_0-1681443373193.png

 

Hi @AnveshKumar M ,

My mistake, I forgot to add Attributes [Use Document Viewer] for custom table.

Thanks for your help.