- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-29-2020 10:34 PM
Hi,
Is it possible to hide the "Manage Attachments" link and the attachments based on users/ groups on the incident form.
Regards,
Hemanth
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-30-2020 03:46 AM
Hi Hemanth,
The manage attachments is to be shown or hidden to particular assignment group on incident form or always it should check if logged in user is member of particular group
Do ensure you add your logic but below is how you can do using DOM
Note: It is not recommended to use DOM
Ensure You use below
1) Isolate Script field to false
2) This field is not on form but from list you can make it false
Sample script below
1) To hide entire row of Manage Attachments and the attachments
function onLoad(){
document.getElementById('header_attachment').style.display = 'none';
}
2) To hide only the Manager Attachments link use this
function onLoad(){
document.getElementById('header_attachment_list_label').style.display = 'none';
}
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā11-02-2020 02:40 AM
Thanks for the confirmation and glad to know that it worked.
I think you should be marking this response as correct as it contains script and would be helpful to find it quickly in future by members.
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-28-2021 07:33 AM
Hello Ankur,
Pretty much we are in the same situation. Do you think is there any other way to restrict the attachments based on assignment groups other than using DOM Manipulation?
Looking forward to hearing your response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-28-2021 07:35 AM
Hi,
I don't think so
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-29-2020 10:47 PM
Hi there,
Hiding the "Manage Attachments" link itself, no go. Or: Dom manipulation, not adviced.
The pop-up which appears: UI page "attachment".
You could disable attachments completely for tables (dictionary attribute No Attachments), though it doesn't sound that that's what you are after.
Restricting certain attachments themselves, see Ankur's comment.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-30-2024 11:08 PM
hi @Ankur Bawiskar and my requirement was hide manage attachment for particular user in the form and its only access to the assigned to user field on the form , restricts to all users
Thank you in advance