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.

Please share scripts for assignment group changed short discerption should mandatory ?

NaveenKumarSN
Tera Expert

Please share scripts for assignment group changed short discerption should mandatory ?

 

Thanks in advance

5 REPLIES 5

Amit Pandey
Kilo Sage

Hi @NaveenKumarSN 

 

You want to make short description field mandatory when assignment_group changes. Right? 

 

Regards,

Amit

 

 

Yes

check my updated script...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

SN_Learn
Kilo Patron
Kilo Patron

Hi @NaveenKumarSN ,

 

You can create a 'onChange' Client script on the assignment group field.

 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {

  if (newValue === '') {
      return;
  }

 g_form.setMandatory('short_description', true);
}

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.