
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 08:53 AM
Hi All,
I have created below View rule and put the logs but its not getting trigger. Is my script is correct ?
Please suggest,
Script:
(function overrideView(view, is_list) {
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2025 03:53 AM
HI @Virendra K
check if there is any unnecessary field populated on the view rule
couple things you can check
- override user preferences should be = true
- check if any condition is added and remove it
- check if any other view rule is overriding your view rule
- if you instance is domain separated check if the change record domain that you are opening and view rule are same domain
- check if your view rule is overriding other view rule
- check any other view rule is acting on and change the order and see
change the gs.log to gs.addErrorMessage or addInfoMessage so that if the view rule runs you'll immediately see the message on the form and you don't have to open the logs to check
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2025 03:24 AM
I tried with Try Catch but cannot see any error message. Also there is no issue in the Script Include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2025 03:53 AM
HI @Virendra K
check if there is any unnecessary field populated on the view rule
couple things you can check
- override user preferences should be = true
- check if any condition is added and remove it
- check if any other view rule is overriding your view rule
- if you instance is domain separated check if the change record domain that you are opening and view rule are same domain
- check if your view rule is overriding other view rule
- check any other view rule is acting on and change the order and see
change the gs.log to gs.addErrorMessage or addInfoMessage so that if the view rule runs you'll immediately see the message on the form and you don't have to open the logs to check
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya