Advanced / scripted view rules do not override user preference but normal view rule works.

Steps to Reproduce

1) Go to Any build of Helsinki/Istanbul/Jakarta(trackui-03-03-2015_03-28-2017_1755)
2) Go to View Rules
3) Click New
4) Name it anything
Change the Table to Incident
Check the Advanced box
In the script field, add the following code:
(function overrideView(view, is_list) {
answer = 'Mobile';
})(view, is_list);
5) Click Save
6) Go to incident list
7) Open any record - You're forced to Mobile as expected
8) Change the View to any other view, Password/Metrics/Major Incidents
Expectation: You're forced back into Mobile view
Actual: Your user preference is honored and you can see the view you change to.


After carefully considering the severity and frequency of the issue, and risk of attempting a fix, it has been decided not to address this issue. We do not make this decision lightly, and we apologize for any inconvenience. If you have any questions regarding this problem, contact ServiceNow Customer Support.


The other ways by views can be enforced are following.

1.Navigation handler:

2. SwitchView on client side:!/api_doc?v=jakarta&id=r_GMODV3-switchView_S

3. Business Rules

Related Problem: PRB907335

Seen In

There is no data to report.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:41:01