How to hide the attachments showing on top of item and task forms

dp11
Tera Guru

Hi,

I have implemented a 'defined relationship ' to show all attachments in a requested item and catalog task form under tabbed

sections. I would like to hide the list of attachments that shows up at the top of the form by default. Any one knows how to

do this?

Thanks,

Debashree  

1 ACCEPTED SOLUTION

Artemis15
Kilo Guru

Hi Debashree,



You can hide attachment link by this:



$$('img[title="Attachments..."]')[0].up().up().down().hide();



For hiding attachment section, You need to write again custom javscritp code.



document.getElementById('header_attachment').style.display="none";



As well as you have to hide attachment section line


for this :


document.getElementById('header_attachment_line').style.display="none";



Put these 2 lines on any onload client script.



-


Cheers,


Akash Rajput


View solution in original post

17 REPLIES 17

HarshTimes
Tera Guru

Disabling Attachments on a Table

To prevent attachments from being added to records on a specific table:


  1. Open a record in the table.
  2. Right-click in the header bar and select Personalize > Dictionary.
  3. In the list of dictionary entries, select the first record in the list (the record with no Column name entry).
  4. Add no_attachment to the Attributesfield, separated by commas from any existing attributes.
    See Dictionary_Attributes for more information.

Hiding the Attachment [view] Link

Users can open an attachment by clicking either the file name or the [view] link. The [view] link opens the file from within the browser, which executes JavaScript code as part of the attachment.To hide the [view] link:


  1. Add the glide.ui.disable_attachment_view and glide.ui.attachment_popup properties. For instructions on adding properties to the platform, see Adding a Property.
  2. For the glide.ui.disable_attachment_view property, set the Type to true/false and set the Value to true.
  3. For the glide.ui.attachment_popup property, set the Type to true/false and set the Value to false.
  4. To return to the default behavior (enable the link), set the glide.ui.attachment_popup property Value to true.

Note


Note: Users can still view attachments by clicking the file name.

nthumma
Giga Guru

Thanks it worked for me


vijaysirangi
Kilo Contributor

i need to display the link to attachment on top instead of related   list. how can i do it . thanks in advance