Variable to be visible only in 1 task

naga karthik1
Tera Contributor

Hello All,

 

I have a requirement to show 2 variables in task level but not on RITM and Form level.

For this I have made the variables as Global True and written a UI policy to hide these on form and RITM level.

So this works well and these are visible on task level. But I want this to be visible on only 1 task but not on all tasks of RITM, which is not happening and these are visible in all tasks of the RITM.

 

Please let me know how can I achieve this. 

6 REPLIES 6

Hi,

I tried unselecting the variables from the selected list on the create task activity from Flow designer to hide the variables from one specific task and made sure global checkbox is unchecked on the variable, but this didn't work for me. Any idea if I am missing something?

Thanks

 

Harish KM
Kilo Patron

Hi @naga karthik1 you can create a onLoad client script on sc_task table,

 

var sd = g_form.getValue('short_description'); //task short desc

if(sd == "your task short desc")

{

g_form.setVisible('variables.variablename',true);

}

else

{

g_form.setVisible('variables.variablename',false);

}

Regards
Harish