Hide fields ui policy not working on case creation page

tpeleg
Tera Expert

Hello experts,

 

I'm having an issue with HR case creation page: I need to hide some fields based on value from another field on the form.

the UI policy is working partially: it turns fields to mandatory but not hide them when the condition is false (revers if false). I think the reason is that they appear in the case creation config and it's stronger than the UI policy. 

conditions were checked.

 

any suggestions how to hide fields?

please find attached screen shots.

 

Thanks,

 

Tomer

 

tpeleg_0-1703751918248.png

 

tpeleg_2-1703752246362.png

 

tpeleg_1-1703751992859.png

 

tpeleg_3-1703752465717.png

 

 

12 REPLIES 12

Danish Bhairag2
Tera Sage
Tera Sage

Hi @tpeleg ,

 

Try changing the order of the UI policy to some diff value n check whether it helps or not

 

Thanks,

Danish

 

Thank you @Danish Bhairag2 ! actually I have 3 Policies.

One to show the choise field which according to it's choise to hide or show the other fields.

Second for the first option and third for the second option. all of them including the HR service = relevant hr service in the condition. just tried to change the order but stil it's the same behaviour...

Maik Skoddow
Tera Patron
Tera Patron

Hi @tpeleg 

whenever a field is mandatory, it is not possible to hide it. There are many ways to make a field mandatory. And without more insights and details from your side, it is hard to make assumptions what's going wrong.

Therefore, please leverage the "Field Watcher" functionality to find out why a field mandatory: https://docs.servicenow.com/bundle/vancouver-api-reference/page/script/debugging/concept/c_FieldWatc... 

Maik

thank you @Maik Skoddow , actually the issue is the fields are not disappearing from case creation page, they do changed to not mandatory...