- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 06:19 AM
I am trying to stop all editing of a related list when an incident is closed or cancelled. The related list is 'related services' which appears on Incident and I want to make the list view of related services read only when incident is in one of two states. I cant get this to work and it seems to ignore what task.state is. Any help is appreciated
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 02:26 AM
Thanks for everyone's input. The answer was to manually script it:
if(current.task.sys_class_name == 'incident'){
if(current.task.state == 7 || current.task.state == 8){
answer = false;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 02:26 AM
Thanks for everyone's input. The answer was to manually script it:
if(current.task.sys_class_name == 'incident'){
if(current.task.state == 7 || current.task.state == 8){
answer = false;