How to make related list "Affected locations" read only on incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2017 07:38 AM
Hi All,
How to make related list called "Affected locations" should be Read only on incident form(for ess view),when the incident state is resolved/closed.
Any help would be appreciated . Thanks in Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2017 07:46 AM
Hi Robin,
What are you trying to achieve? When you say read-only, do you want to hide the New or Edit button on the related list?
For this you will have to configure list control condition via script.
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2017 09:09 AM
Thanks for reply. I'm Trying to hide the Edit button after the incident state is resolved/closed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2017 09:22 AM
Try this script in omit edit condition
answer = (parent.state == 'resolved_state_value') || (parent.state == closed_state_value' );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2017 12:34 AM
The List control will be global change and not sure if you can hide it specific to the self service view as required.
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response