- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2022 07:14 AM
Hi Team,
There is an string field "X", I need to restrict the updation of negative values from table list view.
I have "ONSUBMIT" client script which is restricting from form level and same restriction is not applying for list view.
How can I achieve this?
Thanks,
Aahitha
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2022 10:53 PM
Hi
This may help you
Write OnCell edit client script on your 'X' field
function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
var saveAndClose = true;
//Type appropriate comment here, and begin script below
if (newValue <= 0) {
alert('Not poosible');
saveAndClose = false;
}
callback(saveAndClose);
}
Thanks
Murthy
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2022 11:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2022 11:25 PM
Hi,
can you share your before update BR script and logic?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader