View Rule based on Record's Field Value not Enforced
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2025 03:10 AM
For assessment instance, we would like to enforce different views based on the Metric Type's value (i.e. a field in the record) and we have used View Rule to configure the following:
- If metric type = demand, Demand view should be enforced.
- If metric type is others, Default view should be enforced.
We are sure that the settings in client script, view rule and UI policy in the table have no clash in between, and "Override User Preference" in View Rule is set as true, but now once the user changes the view manually, it will follow the setting by user instead of enforcing the view rule.
How could we enforce the view rule based on the metric type only?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2025 03:50 AM
I believe that user has "view_changer" role and hence able to switch the views
check this link
Advanced / scripted view rules do not override user preference
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader