- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 06:59 PM
How do view rules work in a list vs in a form?
I see that there are two types of view rules with two different modes, here are their respective question, assuming that the view rules run when the user first loads a list or a form.
case 1:
advance = true && is_list = true
-what does the condition run against? the filter on the view?
case 2:
advance = false && is_list = true
-what does the condition run against? the filter on the view?
case 3:
advance = true && is_list = false
case 4:
advance = false && is_list = false
I found this servicenow doc that is kinda related but it didnt fully answer my question:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 08:12 PM
Hi @juan9 ,
in simple way
when advance = true meaning script to determine when to display a particular view
in script:
- if (is_list) { // if it's a list
answer = "ess"; // set the new view to answer
}
else // if it's not a list, in other words, on a form
answer = ""; // "" is for default view
when advance = false then it will run on form view only.
Please mark helpful & correct answer if it's really worthy for you.
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 08:12 PM
Hi @juan9 ,
in simple way
when advance = true meaning script to determine when to display a particular view
in script:
- if (is_list) { // if it's a list
answer = "ess"; // set the new view to answer
}
else // if it's not a list, in other words, on a form
answer = ""; // "" is for default view
when advance = false then it will run on form view only.
Please mark helpful & correct answer if it's really worthy for you.
Thanks,
BK