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. 

5 REPLIES 5

Harish KM
Kilo Patron
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