- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 08:38 AM
Hello,
I would like to show a specific view for the user viewing a record and IS NOT the assigned to person:
I have created a view rule but for some reason the view is not being forced.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 10:11 AM
I was able to add javascript to the condition to display the correct view. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 10:08 AM
@Andre8 Please try this, I wanted to show the default view to admin and Self Service View to other users, below is the view rule I have written.
(function overrideView(view, is_list) {
// Add your code here
answer = null; // set the new view to answer
var user=gs.getUserName();
if(user=='admin'){
answer='default';
}else{
answer='ess';
}
})(view, is_list);
Please mark the appropriate response as correct answer and helpful.
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 10:11 AM
I was able to add javascript to the condition to display the correct view. Thanks!