Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

same field with two ui policies

vahini
Giga Guru

Hello all, 

 

Need help with one requirement

There is a list collector field called 'applicable_loss_type' , initially i was told to show this field only if

line of business = comm prop (or) personal prop (or) personal auto   ,

which is simple i wrote ui policy and said if LOB is one of these make applicable loss type Mandatory = True and Visible = True

vahini_3-1738779463164.png

 

 

 

Now got one more request from customer to make this list collector 'visible' and 'not mandatory'  if request type = modify threshold 

 

i wrote another ui policy if request type = Modify Threshold then 

applicable loss type Mandatory = False, Visible = True. 

 

vahini_2-1738779406556.png

 

 

 

 

 

But this 2nd policy is not working as expected, it's visible onload and when i change LOB and change request type applicable loss type is not hiding.

How to deal with this situation ? 

 

vahini_0-1738779250835.png

 

 

Thank you so much for reading my post and responding. 

 

6 REPLIES 6

Your Line of Business field looks like a list collector. If so, you need to change your condition to select the actual records. List collectors don't save the name of the item; they save the sys_id. That's the only reason I can think of why it would show when it's empty.

vahini
Giga Guru

after meeting with customer he explained how it should work , changed UI policy and it's now working as expected

UI Policy 1 : 

vahini_3-1739306416177.png

 

 

UI Policy 2:

 

 

vahini_2-1739306370927.png