- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2025 05:31 AM
how to restrict users from list view not to change state value using client script
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2025 09:36 AM
Hi @seshik
You need to write an on-cell edit client script.
Example:
function onCellEdit(sysIDs, table, oldValues, newValue, callback){
var saveAndClose = true;
if(newValue != oldValues) {
alert("Changing state from list is not allowed.");
saveAndClose = false;
}
callback(saveAndClose);
}
Another Best approach be to write an WRITE ACL on table.state field.
Only those users with that role can edit and for it will be read only.
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmudin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2025 09:36 AM
Hi @seshik
You need to write an on-cell edit client script.
Example:
function onCellEdit(sysIDs, table, oldValues, newValue, callback){
var saveAndClose = true;
if(newValue != oldValues) {
alert("Changing state from list is not allowed.");
saveAndClose = false;
}
callback(saveAndClose);
}
Another Best approach be to write an WRITE ACL on table.state field.
Only those users with that role can edit and for it will be read only.
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmudin.