- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2024 11:25 PM
incidents should not be marked as "Resolved" unless there are work notes explaining the resolution.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2024 11:31 PM
Hi @nehasingh98 ,
You can create Onsubmit client script and use below code.
function onSubmit() {
//Type appropriate comment here, and begin script below
if (!g_form.getValue('work_notes') && g_form.getValue('state')==6) {
g_form.addErrorMessage('Work Notes field is required.');
return false;
}
return true;
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2024 11:34 PM
Hello @nehasingh98
Condition - State Change to Resolved.
You can achieve this by on change and on submit client script by using below statement
g_form.setMandatory('work_notes', true);
g_form.addErrorMessage("worknotes are mandatory")
Please mark the answer as helpful and correct if helped.
Kind Regards,
Ravi Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2024 11:31 PM
Hi @nehasingh98 ,
You can create Onsubmit client script and use below code.
function onSubmit() {
//Type appropriate comment here, and begin script below
if (!g_form.getValue('work_notes') && g_form.getValue('state')==6) {
g_form.addErrorMessage('Work Notes field is required.');
return false;
}
return true;
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2024 11:34 PM
Hello @nehasingh98
Condition - State Change to Resolved.
You can achieve this by on change and on submit client script by using below statement
g_form.setMandatory('work_notes', true);
g_form.addErrorMessage("worknotes are mandatory")
Please mark the answer as helpful and correct if helped.
Kind Regards,
Ravi Chandra