How to Display fields on basis of catalog task

puneetgoels1
Tera Guru

In my workflow, there are around 20 catalog tasks and there are 100 fields all together. I need to display selective fields on the basis of catalog task e.g. task 1 show 5 fields and hide others, task 2 show 10 fields and hide others and like wise.

How can it be achieved efficiently?

1 ACCEPTED SOLUTION

puneetgoels1
Tera Guru

Correct Answer: Catalog UI Policy or UI policy do not work on the conditions on short description of task. It works only for catalog item variables and short description like fields be it at request item level or catalog task level in scoped application.



So the way to achieve it is write a UI policy at global level, put a condition for the catalog item and use the script to implement it


View solution in original post

40 REPLIES 40

Is   u_application_name a field of sc_task or task table?


No. None of the field belongs to task. All are variables of catalog item



On Wed, Aug 23, 2017 at 10:27 PM arindamghosh.net <


It's my bad. I thought all the fields are in sc_task table.



So now what you do is, create an catalog client script for this catalog item, use the same script there and check only below checkbox and try.



find_real_file.png



Thanks,


Arindam


I tried that same error there as well



On Wed, Aug 23, 2017 at 10:47 PM arindamghosh.net <


As mentioned by you, follow this instruction and try once:



setVisible works, but setDisplay doesn't