The CreatorCon Call for Content is officially open! Get started here.

We want end users to be unable to switch views in the list view of form.

chanken
Tera Contributor

We want end users to be unable to switch views in the list view   of form.

We want to hide the enclosed image in the red frame of the attached image.

We use incident management on two teams.

We assigned different roles to each team.

We separate the view of the form used for each team.

We have an application menu for each team. And we are assigning team roles.

We now display different forms of views for each team.

However, if the end user switches the view, it overrides the view designation in the application menu.

We want to prevent this.

thanks.

1 ACCEPTED SOLUTION

antin_s
ServiceNow Employee
ServiceNow Employee

Please check if the below helps.



Restricting user by role to a specific view is not working



Hope this helps. Mark the answer as correct/helpful based on impact.



Thanks


Antin


View solution in original post

13 REPLIES 13

As Kalaiarasan said setup view rules for both tables.



Create a view rule


Hi Kalaiarasan and Nayan,



I would like to switch the view from the role of the login user.



In that case, I think that a script is necessary.



I would like to know the case which is using the script.



thanks.


Advanced script for view rule.



answer = view;


if (gs.hasRole == 'rolename')


answer = 'view name';


Hi Kalaiarasan,



Thanks your response.


I tried that. But, that is not working.



thanks.



vr.bmp


Change v= something to answer=