Forum Discussion
rapidbisupport
02-07-2024Data Pipeline
Hi Augustine ,
I was able to get this working by applying a modified version of your script as a dashboard script:
dashboard.on('domready', () => {
console.log('dashboard initialized');
const userGroups = prism.user.groups;
// Hide #cashflow for specific group
if (userGroups.includes("659740b5f1a21c003908f3a4")) {
$('#ITEM1').hide();
} else {
// hide cashoutflow
//$('#cashoutflow').remove();
}
});
You'll need to change the includes group and element ID from ITEM1.
Let me know how you go?
Thanks,
Daniel
RAPID BI
RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons