Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Disable Attachments & Comments for Closed Catalog Requests

abhijee
Tera Contributor

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.

3 REPLIES 3

Huynh Loc
Mega Sage

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.

 

Rakesh_M
Tera Guru

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
 

Tanushree Maiti
Kilo Patron

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();

}

   Ref: https://www.servicenow.com/community/developer-forum/to-restrict-attachment-on-incident-from-once-st...

 

3) You can try with ACL 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: