Assigned to should not be filled if Assignment Group Field is Empty on Incident Form

SNOW46
Tera Contributor

Hi All,

I have one requirement that user cannot able to fill the Assigned To cannot be filled without Filling the Assignment Group.

Can anyone suggest me how to impose the restriction in SNOW?

 

Regards,

SNOW@Das

 

 

17 REPLIES 17

Ravi T
Tera Guru

Use client script 

if(!g_form.getDisplayBox('assignment_group').value)

{

  g_form.setReadOnly('assigned_to',true);

}

Harsh Vardhan
Giga Patron

find_real_file.png

 

 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
   if (isLoading || newValue === '') {
      return;
   }

   //Type appropriate comment here, and begin script below
	if(!g_form.getValue('assignment_group'))
		{
			alert('please first select the assignment group');
			g_form.setValue('assigned_to','');
		}
   
}

 

write onchange client script on assigned to field.

Hi,

I also want to make the Assignment Group field Mandatory at the same time.

Can you please let me know how to achieve the same.

VigneshMC
Mega Sage

Add an ui policy , which makes assigned to read only when assignment group is empty