- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 02:56 AM
Hi Folks,
I have added a data visualization single score component on landing page of a workspace. I want to make it visible to only certain roles .... How can I configure it ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 07:57 AM - edited 10-19-2022 08:01 AM
Hello Tapish,
You can use componen visibilty for this. Follow the below steps to acheive it :
1. To do this click on the component that you need to hide and go to the configuration panel and click on 'Edit component visibility' button indicated by 'eye' symbol, shown below
2. Hover over the Hide component, it will show you some buttons. Click on the code button indicated by '</>' sysmbol. This will open a popup page where you can script
3. Use the below script and modify role as per your requirement:
I Hope this helps.
Please mark this helpful if this helps and mark as correct if this solves your issue.
Regards,
Kamlesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 11:14 PM
Can we add condition based on user group?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 02:01 AM
Hello, I have the same requirement. Were you able to add?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 12:33 AM - edited 03-22-2024 12:35 AM
Hello kamlesh,
My requirement is, If there is no data on the visualization component i need to hide the component. Kindly help me in scripting.
Kindly check the component on below screenshot:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi Kamlesh,
Thank you for this.. Its not letting other users than admin role to edit. But I also wants to add condition that only the quick links which are marked global as true(field on quick links table)to be restricted for non admin users so how can I write this in the same code? Can you please provide me .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2024 05:07 AM
Hello, if i need this condition to check the role of the current viwer of the hr profile (user presence) what i need to change in the "api.context.session.user.roles;" in order to get the current viewer of that page and to get his roles.
thanks!