State is closed All fields readonly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2022 04:05 AM
State is closed All fields readonly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2022 04:08 AM
Hi,
You have to create an ACL on the table in question, It should be something like this
Type : Record
Operation: Write
<your table>.*
Condition: State IS Closed
script : answer = false
-Anurag

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2022 04:10 AM
Hello,
Write on load client script like below, Exclude admins because In case you need modification then you can ask admins to do that.
function onLoad() {
if(!g_user.hasRole("admin") && g_form.getValue("state")==7) {
var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
g_form.setReadOnly(fields[x], true);
}
}
}
Please hit like and mark my response as correct if that helps
Regards
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2022 04:11 AM
hey Mate, just to add a bit, this will still leave the fields open in list view.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2022 04:15 AM
Ahh agreed, Thanks for correcting me.
Regards,
Musab