Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to make the assignment group mandatory

Pooja Khatri
Tera Contributor

Hello All ,

I have a requirement , where  I need to make the assignment group mandatory field and also when the assigned_to value changes the assignment group should become empty and it should become mandatory again.

Can anyone help me how I can configure this on the client side.

Thank You in advance !!

 

1 ACCEPTED SOLUTION

Hi,

is the field on form or not?

please share client script screenshot

if that doesn't work then use this normal client script on sc_req_item table

function onLoad(){

	var itemName = g_form.getDisplayBox('cat_item').value;
	if(itemName == 'Your Item 1'){
		g_form.setMandatory('assignment_group', true);
	}
}

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

20 REPLIES 20

Hi,

so did alert come?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar  -- Yes alert did came but it didnt set it mandatory

Hi,

is that group field on form?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Pooja Khatri 

If this setup is in your personal instance and you are ok to share details url and some admin credentials then share here -> ankurb.snow@gmail.com

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar  -- these details are not on the personal instance .. I cannot share it in the Email.

 

If not by client script is there any other way in which I can implement it.