Disable Attachments & Comments for Closed Catalog Requests
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hello Team,
I am currently working on the below requirement and would like to check if anyone has worked on this earlier. Kindly guide me and share your inputs.
Requirement:
Disable the ability to add or edit attachments and comments once the request is in a closed state (Cancelled, Closed Complete, or Closed Incomplete) for a specific catalog item.
For reference, please find the attached screenshot.
Thank You in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
Hi @abhijee ,
Create a new BR to disable attachments.
You can refer to this thread to get the solution
https://www.servicenow.com/community/employee-center-forum/disable-attachment-when-closed/m-p/238942...
If this response was helpful, please consider marking it as Correct and Helpful. You may mark more than one reply as an accepted solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @abhijee ,
1.Goto Standard Ticket Configuration
2.Select record where table is sc_req_item.
3.Under Tab Configurations related list select Activity
4.Add visible condition as per requirement.
5.Repeat same with attachment tab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @abhijee
1. Create a BR on sys_attachment and using adavance script if the table is sc_req_item .
Screen shot is given here: Disable attachment when closed
2. Create a client script on sc_req_item to hide or disable the attachment option when incident state is closed like wise OOB client script is given for incident ->"(BP) Hide Attachment Link when Closed"
Below is the script for the same to hide when state is closed:
function onLoad() {
if (g_form.getValue('state') == '7') // Update state value as per your system
g_form.disableAttachments();
}
3) You can try with ACL
