Show a field in catalog task depending on another field in another catalog task in servicenow

User205031
Tera Contributor

Hello All,

I have a requirement:

 

1. Created a choice field 'B' in catalog task 'A'

2. Created another choice field 'C' in catalog task 'D'

 

Choice field 'C' in catalog task 'D' will only be visible if I select 'Yes' in choice field 'B' in catalog task 'A'.

 

How to achieve?

 

 

3 REPLIES 3

Utpal Dutta
Tera Guru

Hi there,

Since all the choice fields are there only on one table which is Catalog task table. It is not possible to make it visible only for one catalog task form and not for the other catalog task form. If it will be visible on Catalog task A then it will be visible on Catalog task D as well.

Please let me know what is your requirement clearly so that I can help you.

 

If my answer helps then please mark it Helpful or Correct!

 

Thanks,

Utpal

Hi Utpal,

We have created a custom variable 'task name' which differentiates between two catalog tasks.

Based on this task name I have written a UI policy to show field 'C' in task 'D'.

 

Now I need to show field 'C' only when I select 'Yes' in field 'B' which is in another task.

 

Thanks!

Utpal Dutta
Tera Guru

Lets suppose you have found a way to do it! Which is when show field 'C' only when I select 'Yes' in field 'B'. So if YES is selected it will make it visible on catalog task form which can be any form either Task 1 form or Task 2 form. You need something specific on client level not on server level to differentiate between 2 task. Like the one you are doing for catalog task D. There you are comparing the catalog task name which is available on the client level.

 

I hope my answer helps!