- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2014 05:02 AM
Hi,
I am trying to hide the attachment icon on header with below code in Eureka in an on load client script but it is not hiding the icon.
var attachment_header = document.getElementById('header_attachment_list');
attachment_header.style.display='none';
Any help or advise will be highly appreciated.
Sami.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2014 06:28 AM
Can you try hiding the attachment icon using below script
$$('img[title="Attachments..."]')[0].up().up().down().hide();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2014 05:19 AM
Hi sami..
I hope this wud help
Disabling Attachments on a Table
To prevent attachments from being added to records on a specific table:
- Open a record in the table.
- Right-click in the header bar and select Personalize > Dictionary.
- In the list of dictionary entries, select the first record in the list (the record with no Column name entry).
- 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:
- 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.
- For the glide.ui.disable_attachment_view property, set the Type to true/false and set the Value to true.
- For the glide.ui.attachment_popup property, set the Type to true/false and set the Value to false.
- To return to the default behavior (enable the link), set the glide.ui.attachment_popup property Value to true.
Note: Users can still view attachments by clicking the file name. |
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2014 05:39 AM
Thanks Harish,
I beleive this will completely disable the attachment functionality on a table.The requirement is just to hide the paper clip on the form header as the attachments are still required and managed using Add Attachment Button using ServiceNow Share.
Sami.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2014 06:57 AM
Hi Sami,
Hope the Add Attachment Button share app is working well for you.
My first question would be why do you need to hide the paperclip icon? Is it not working? It's typically not a big deal if a user has a couple of different ways to add attachments.
If you're using CMS, you can check the Simple Catalog Display on the site record and it will remove the bar that contains the paperclip icon.
It gets a little tricky when trying to hide just the attachment icon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2014 07:14 AM
Hi Brad,
Yes it is possible through Simple Catalog Display but it will remove the complete bar and we are using Submit button on form header using moving the Submit button so it is not possible to use simple catalog display,The reason why I am looking for removing paperclip is because we need submit button position exactly on right side of form header.Please advise if there is any possibility either to hide the paperclip or move the submit button to highlighted area in the below image.
Sami.