Using Access Groups for Conditional Visibility
Here's what we're thinking...
Modify Your Page by Access Group
user.access_groups.includes('pro');<script>
window.sa5.push(['userInfoChanged',
(user) => {
// Check to see if access_groups info is loaded
if(user.user_data_loaded.access_groups) {
// Make changes to the page when the current user
// is in the 'pro' access group.
if(user.access_groups.includes('pro') {
// Do whatever you want to your page
}
// Make changes to the page when the current user
// is NOT in the 'pro' access group. ( notice the ! operator )
if(!user.access_groups.includes('pro') {
// Do whatever you want to your page
}
}
}]);
</script>Conditional Visibility
Displaying certain elements only to users in a specific access group
Future Ideas
Routing
Zoning
Last updated