How can I show or hide a field "question" on a record producer based on the value of another field?

carlh
Kilo Guru

Hello Everyone,

I am trying to replace an older SharePoint form with a record producer in ServiceNow.

I created the record producer from the table and need to be able to show and require, or hide and not require a few fields that only need to be filled in if the value on another question is set to true or another specific value.

Example, if I choose "person type" = Member, I need to show and require the member ID "question" so they will populate it.   If it's "Employee" I would not need the Member ID but would need the "Employee ID".

I'm looking in the variables and see I can set them to mandatory but can't seem to find where to add the UI policies or if that is the right way to do it.

Can this be done without having to script?

Please let me know if this makes sense.

Regards,

Carl

2 REPLIES 2

User179407
Mega Guru

You need to use Catalog UI policies. Refer below link



Service Catalog UI Policy - ServiceNow Wiki



Suraj


Shishir Srivast
Mega Sage

Hi Carl,



Using a catalog UI Policy is a right way to get the requirement done instead of catalog client script. You can navigate to Service Catalog > Catalog Administration -> Catalog UI Policies and then provide the condition on which you want to make the respective field mandatory and visible, please find the reference screenshot below. You might have to create two Catalog UI Policy.



find_real_file.png