How do view rules work in a list vs in a form?

juan9
Giga Guru

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:

https://docs.servicenow.com/bundle/washingtondc-platform-user-interface/page/administer/navigation-a...

 

 

Screenshot 2024-11-04 at 9.50.59 PM.png

Screenshot 2024-11-04 at 9.53.53 PM.png

 

 

 

 

1 ACCEPTED SOLUTION

Bhavya11
Kilo Patron

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

View solution in original post

1 REPLY 1

Bhavya11
Kilo Patron

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