- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 11:27 PM
In the incident we have set some mandatory fields, it will check the fields filled or not , if not will popup the message.
But in list view update status to Closed or Resolved not apply the rules, no alert message for need filled the mandatory fields, and status value can be set directly.
As required when ticket change to Closed or Resolved they need get the same alert message.
Any ideas for this control in list view ? Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 12:15 AM
Use OnCelledit client script as below and add your conditions as required in if statement,
function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
var saveAndClose = true;
if(newValue == 7){
alert('Please fill mandatory details');
saveAndClose = false;
} else {
saveAndClose = true;
}
callback(saveAndClose);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 11:56 PM
Hi @Tina24 ,
UI Policies have 2 types - onload and onchange. Hence it will not working in list view.
Client script have 4 types - onload, onchange, oncell edit, onsubmit.
you can write on cell edit client script for your business requirements.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 12:15 AM
Use OnCelledit client script as below and add your conditions as required in if statement,
function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
var saveAndClose = true;
if(newValue == 7){
alert('Please fill mandatory details');
saveAndClose = false;
} else {
saveAndClose = true;
}
callback(saveAndClose);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 05:46 PM - edited 06-26-2025 05:47 PM
Why is this the "accepted solution" when it does not even cover the question asked about other required fields?