The CreatorCon Call for Content is officially open! Get started here.

check if the assignment group is empty

devika1822
Tera Contributor

How to write a client script to check if Assignment group is empty and do not allow saving if empty 

2 REPLIES 2

JP - Kyndryl
Kilo Sage

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 .

 

Regards,
JP

Mayu
Tera Guru

Write onsubmit client script;

Function onSubmit()

{

if(g_form.getValue(assignment_group)=='')

{

return false;

}

}

Please mark correct if it helped you.