We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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. 

8 REPLIES 8

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

 

Hi,
Removing variables like that will only have effect on the tasks that are created after you published the changes.
That means that every task that has already been created in the system will continue to show the variable, but on tasks created/triggered by the updated flow should not show them. 

Yes, I agree with you that any changes in the flow will be reflected only for the new tasks not old ones. I am creating a new task after the change but still it didnt work for me.

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