how to make related list readonly using script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
my requirement is to make the change request readonly if the current user isn't a change manager or directly associated
here is the requirements:
"
The following restrictions are enforced:
- Change request Type field is Normal or Emergency and State field is New or Assess: Any user directly associated with the change can edit all fields that are not read-only.
- Change request Type field is Normal or Emergency and State field is anything except Closed or Canceled: The change_manager role can edit all fields that are not read-only.
- Change request Type field is Normal or Emergency and State field is New or Assess: Any user directly associated with the change can edit all related lists.
- Change request Type field is Normal or Emergency and State field is anything except Closed or Canceled: The change_manager role can edit all related lists.
- Change task State field is New, In Progress or On Hold: Any user directly associated with the change or change task, or who has the change_manager role, can edit all fields that are not read-only.
"
I made a onload script to disable fields but don't know how to do that to the related lists: