How to add pop up message in the Icon Link widget if user has not itil role
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 12:59 PM
Hi All,
I have a requirement to add pop up message in the Icon Link widget if user has not itil role.
Or is there any way to grey out the Icon link widget if user has not itil role.
I tried to give the role to that widget in the instance configuration but it is hiding the widget itself for non itil users.
User can see the Icon but should not able to click on that.
Please help me here.
Thanks,
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 07:29 PM
Unfortunately, you have two problems to deal with.
The first is determining whether the user is itil or not. This can be easily done with visibility on an icon link, but not other options.
The other is disabling the link. Disabling the link is very difficult in most cases, as there is no "disabled" class. You would need to control the class, format it to look differently and no longer use the 'hand' cursor, probably need some scripting, interrupt the redirect...
My recommendation would be to limit the icon link widget to be visible to those with itil role only. Then create a second widget that would be visible to those without the itil role. This second widget looks similar to the first widget but is not actually a link. HTML widget could be good for this.
If you're using a decent enough layout and the two widgets are of similar size, side by side in the same container, one should effectively replace the other in the view when you load the page. It's not exactly how you were requested to perform this task, but it provides them with a solution that gives the same effect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 08:31 AM
Hi @AJ M ,
I have done this. I am able to restrict the user to click on the icon link widget.
Thanks,
Sam