Make the parent and child form read only when status is closed in process list using acl.

sushil sinha
Giga Contributor

Hi,

I have to make the parent and child form read only when status is closed in process list using ACL.

I know how to make readonly through client script but requirement is to use ACL.

 

find_real_file.png

 

 

1 ACCEPTED SOLUTION

Sushil, Using the conditions on the ACL you can "dot-walk" to the parent record and look at its states as a condition.  First make sure you scroll to the bottom of the "choose field" list and select Show Related Fields and then use your Parent ==> Task Fields or whatever linkage you have back to the parent record and choose the state field and condition.

 

So for example, as mentioned out of the box the incident becomes read only while in a state of closed.  However the Incident Task (incident_task) does not.  I modified the write ACL on incident_task to include a condition of Incident.State is not one of Closed or Cancelled:

find_real_file.png

 

This makes the record read only for the ITIL users.

 

Please mark this post or any as helpful or the correct answer to your question if applicable so others viewing can benefit.

View solution in original post

5 REPLIES 5

palmen
Tera Guru

As Micahel said it's fairly straight forward and I strongly suggest you to read up on ACL and how it works so you don't do anything that isn't expected.

https://docs.servicenow.com/bundle/london-platform-administration/page/administer/contextual-securit...