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

ServiceNow SA
Kilo Guru

Do you mean to say catalog item variables here ? In that case, can we not simply add/remove variables in the slushbucket for all catalog tasks in workflow?


We can but while applying other features like readonly or mandatory we have to use UI policy but it is giving this error



find_real_file.png


I tried putting item variables in slush bucket. Now the challenge is making them readonly or mandtory on the basis of description. When I put a client script for that I am getting errors like these. I am using a scoped application, FYI.. So please advise



ReadOnly true not set on field u_bapp_id: cross-scope access denied.




ServiceNow SA
Kilo Guru

For making them read only/mandatory, u can use UI policy and only check " Applies to Catalog task" and uncheck the other two checkbox which is "Applies to Catalog item view" & "Applies to Requested item"


Getting the same error



ReadOnly true not set on field u_bapp_id: cross-scope access denied.