I have created several different dashboards (both v1 and v2) using the ui-control node to show/hide certain pages and groups or to redirect the user to a particular page with no issues. The syntax obviously changed slightly between dashboard v1 and v2 but everything was working. Today I looked at one of my dashboards and no matter what I did, the ui-control node would not properly show/hide certain pages and groups and wouldn't redirect to different pages. I took the flow and recreated it on a separate, isolated instance and had no issues being able to show/hide or redirect. I connected debug nodes and see no errors. I tried on multiple browsers but still the issue persists. I cleared browser cache and checked for any console errors (there were none). I feel quite dumb as I stated this was working before. Is there something I am missing? Any help would be appreciated.
msg.payload = {
groups: {
show: [
'abcd1234', // ID of group to show
],
hide: [
'efgh5678', // ID of group to hide
'wxyz9876', // ID of group to hide
]
}
}
The advantage of using IDs is if you change the name of the page or group, the ID remains the same.
To get the ID of a group, use the i info panel on the right hand sidebar