Hide/Unhide variable on particular catalog task

Kiran Patil3
Giga Expert

Hi

Trying to solve below scenario.

How can we hide one particular variable in one of the catalog task in workflow but should be visible on next task.

E.g. RITM request is submitted and Task 1 is active. Variable 'A' which should be visible on Task 1 and once Task 1 is completed, workflow will generate second catalog task Task 2. Variable 'A' should not be visible on Task 2.

What are the options here, please suggest.

Note: We have tried UI policies and Catalog client script (which does not support event for specific catalog task) and also we dont want to add UI action on catalog task table for specific service. Looking for some generic approach.

Thank You

11 REPLIES 11

SanketLandge1
Kilo Guru

Hello @Kiran Patil3 

 

Try 

 

g_form.setVisible("<variablename>"true)
 
in client script onLoad or onChange as per your requirement.

kedarjangam
Tera Contributor

If you are generating task with Catalog task activity of workflow you have the option to select which all variable you want to show. Move the selected variable from selected to available.