- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 11:09 AM
Im using Standard Ticket on my csp portal and want to modify the standard ticket tab - attachments so that there is not the edit icon. I'm trying to make it where someone cannot change the name of the attachment.
Where do i go to remove that edit button?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 10:17 PM
Hi @Mike Stockman1
please use below script . create a onload client script on the table you want to remove a edit button
function onLoad() {
var editButton = top.document.querySelector('button[aria-label="Edit Attachments mode"]');
if (editButton) {
editButton.style.display = 'none';
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 12:11 PM
Whether than button is visible depends on the user's permissions that are determined by "write" ACLs for the Attachment [sys_attachment] table.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 05:51 AM
ACLs didnt work.
We used CSS to turn off those icons.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 11:22 PM
Have you contacted ServiceNow's technical support? If that icon doesn't honor ACLs, it is a defect that ServiceNow need to fix.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2024 10:17 PM
Hi @Mike Stockman1
please use below script . create a onload client script on the table you want to remove a edit button
function onLoad() {
var editButton = top.document.querySelector('button[aria-label="Edit Attachments mode"]');
if (editButton) {
editButton.style.display = 'none';
}
}