Help showing variables on a particular sc_task

Bidduam
Tera Guru

I have a catalog item that once submitted generates a number of sc tasks.

 

What I need to do is have a number of variables not only show, but also be mandatory on only one of the sc tasks that is created. 

The tasks are all created at the same time.

 

there are a number of differences in each of the sc tasks that are created, the most obvious ones are the assignment group and the short descriptions, however using the catalog ui policy it's not possible to select those fields as a condition.

 

So ultimately what I want to do is on the particular sc_task, make catalog variables a, b, c, d visible and mandatory, however on all other tasks those variables don't show at all.

 

I have tried a number of things already without success such as:

how can I have different ui policies for different...

What is the Best Way to Make Catalog Task Variable...

Solved: How to make variable visible only on specified tas...    (not using flow designer)

 

I would really appreciate some instructions if possible please rather than a link unless it is very specific and the same as what I'm trying to do.

 

Thanks

1 ACCEPTED SOLUTION

Hi @Bidduam I think there is a onLoad client script on SCTask which hides the variable formatter if the variables are not emtpty. You can check client scripts on sc task table.

Regards
Harish

View solution in original post

5 REPLIES 5

Bidduam
Tera Guru

@Harish KM that was exactly the issue - thank you for your help, everything is now working 😀