Variable to be visible only in 1 task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 11:53 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2024 12:48 AM
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);
}
Harish