How to hide variables on a SPECIFIC SCTASK. This is a request with a multiple sctask and I just wanted to hide it only on the second task

Zhane Lising
Giga Contributor

How to hide variables on a SPECIFIC SCTASK. This is a request with a multiple sctask and I just wanted to hide it only on the second task

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

Hello,

If you want to hide it only from second task do the below:-

1) Go to the workflow. In the workflow open the catalog task activity for the second task

2) Once opened you will see the slush bucket for where you can select the fields which needs to be removed just move it from selected section to available

Then it will no longer appear .

The above method is more beneficial as there is not need to maintain any script or UI policy.

Please mark answer correct/helpful based on Impact

View solution in original post

3 REPLIES 3

Geoff_T
Mega Sage

Hi,

You could write an onLoad client script that 'Applies on Catalog Tasks' and includes logic like:

var taskName = g_form.getValue('short_description');

if(taskName == 'Task2') 
{
     g_form.setDisplay('Variable', false);
}

 

Geoff

Saurav11
Kilo Patron
Kilo Patron

Hello,

If you want to hide it only from second task do the below:-

1) Go to the workflow. In the workflow open the catalog task activity for the second task

2) Once opened you will see the slush bucket for where you can select the fields which needs to be removed just move it from selected section to available

Then it will no longer appear .

The above method is more beneficial as there is not need to maintain any script or UI policy.

Please mark answer correct/helpful based on Impact

Jaspal Singh
Mega Patron
Mega Patron

Hi Zhane,

 

If the catalog tasks are created by workflow then I would simply go to the workflow & look for the specific catalog task activity. Open it & then scroll to the bottom & move the variables I want to show on that particular catalog task.