Making field Mandatory on catalog task

Rocky5
Kilo Sage

Hey Experts,

I have RITM workflow which creates 3 catalog tasks, But, I wanted to make one field mandatory on only 1 catalog task and that field should be non mandatory on other 2 catalog tasks.

How can I achieve this?

Thanks,

Rocky,

13 REPLIES 13

Brian Lancaster
Tera Sage

When you say field are you referring to a variable or to a field on the sc_task table?

It is a field.

 

Rocky.

Hi Rocky,

you can use this in your onload client script

I assume short description for those tasks would be unique

Determine the task for which you need this to happen by searching for short description

Regards
Ankur

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

Ankur,

I have the same question. My short description on the task has a variable name in it.  Is it possible to still use the short description?  

 

I did it like this, but its not working.

 

f(g_form.igetValue('short_description')=='IT-Endpoint Architecture Software Packaging Task application_name')

 

The above didnt work.  So I did it based on the assignment group.  That didnt work either.

if(g_form.getValue('assignment_group')=='IT-Endpoint Architecture')

 

Can you tell me what I've done wrong?

Thank you