check if the assignment group is empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 10:25 PM
How to write a client script to check if Assignment group is empty and do not allow saving if empty

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 07:34 AM
Hi Devika1822,
I would rather set the field as Mandatory in the dictionary (so with a red asterisk).
Go into an incident, right click on the Assignment group field, select Configure Dictionary.
Check the Mandatory field.
If you want to do this only for a specific record type, like Incident. Don't select Mandatory and go at the bottom in the Dictionary Overrides tab.
Add the Override mandatory column.
Set Override mandatory for the record type you want, ex.: incident .
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 07:48 AM
Write onsubmit client script;
Function onSubmit()
{
if(g_form.getValue(assignment_group)=='')
{
return false;
}
}
Please mark correct if it helped you.