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.

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

getValue returns the backend vale of the data in the field. Which in the case of a reference field pointing at groups would be the sys_id of the group.

Brian, Thank you for your response.  When I first wrote the UI policy I did d it of off the task short description from the flow and it worked great.  But now the user wants a variable to populate in the short description.  

 

if(g_form.getValue('short_description')=='IT-Endpoint Architecture Software Packaging Task for.variables.application_name')

 

I'm not sure how to proceed.

You can use the assignment group field you just need the sys_id of the group instead of the name. 

Thank you.  I will try that.

Brian,

That worked, thank you.