Make a field read-only on a condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2019 08:53 AM
I have a 'Release Phase' form and related list at the bottom. When I create a 'Release Task', the state field on release phase should be set to 'Ready' and read-only. 'Release Phase' is the parent and 'Release Task' is the child table.
The state should be 'ready' until all the release tasks under the Release Phase are completed. Then the user has an option to choose any state. How can I achieve that? Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2019 04:01 AM
Ignore the above post but the below BR didn't work.
var gr = new GlideRecord("Release");
gr.get("0537233cdbced30049ddf1951d961917",current.rm_release);
gr.state = "2";
gr.update();