- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 06:00 PM
Hello,
I need help on make all variables and fields on the RITM ready only after the RITM state changes to closed complete.
The following client script is not working for the short description, description and CI. They are remaining editable after state is closed completed: Thank you
function onLoad() {
if (g_form.getValue('state') == '3') //check closed complete backend value once
g_form.setVariablesReadOnly(true);
var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
g_form.setReadOnly(fields[x], true);
}
}
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 08:10 PM
@Jessica28 Could you please check if there are other client scripts/UI Policy working on the RITM which is making the short description and description field editable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 08:15 PM
Please discard my question. It was other UI Policy is applied on the same table. Thank You

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 08:10 PM
@Jessica28 Could you please check if there are other client scripts/UI Policy working on the RITM which is making the short description and description field editable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 08:15 PM
Please discard my question. It was other UI Policy is applied on the same table. Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 08:18 PM
Could you please check if some UI policy is making these fields read only false then client script wont work on those fields.
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks