Help with View Rule
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 06:21 AM
Hi
I have created a view rule. For users with exactly 'itil' role, custom view should become main view, and they should not be able to change view. But for users who doesn't have itil role, for the custom view should become the main view, but they should be able to change to other views as well.
How can I achieve this task?
(function overrideView(view, is_list) {
// Add your code here
if (is_list) {
if (gs.hasRole("itil")) {
answer = "customViewName";
}
}
})(view, is_list);
Thanks
0 REPLIES 0