- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 06:10 AM
Hello,
I would like to make work notes a required field when an Incident is re-assigned to another group or to another user. I would like to stop the incident from getting re-assigned until the work notes has been filled out, also I'm trying to get a message that says "Please Add Work Notes When Reassigning" so the user can understand. Would anyone be able to assist?
Thank you,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 06:36 AM
Hi @kal123
You can write an Onchange client script on the assignment group
function onChange(control, oldValue, newValue, isLoading, isTemplate) { if (isLoading || newValue === '') { return; } var assignment_group = g_form.getValue('assignment_group'); if (assignment_group !== '' && oldValue !== newValue) { g_form.setMandatory('work_notes', true); } }
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 06:41 AM
Thank you for the help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 12:44 PM
I tried this solution and after I reassign my assignment_group, the work_notes become mandatory but the ui action "post" disappears
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 06:44 AM - edited 06-11-2024 06:45 AM
Hi @kal123,
Whenever you change the assignment group and assigned to empty them you have to perform this onChange client script.
function onChange(control, oldValue, newValue, isLoading, isTemplate) { if (isLoading || newValue === '') { return; } var assignment_group = g_form.getValue('assignment_group'); if (assignment_group == '' && oldValue != newValue) { g_form.setMandatory('work_notes', true); } }
Please accept my solution if it resolves your issue and thumps 👍 up
Thanks
Jitendra