Hide fields ui policy not working on case creation page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 12:41 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 12:55 AM
Hi @tpeleg ,
Try changing the order of the UI policy to some diff value n check whether it helps or not
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:15 AM - edited 12-28-2023 01:15 AM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 12:55 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:09 AM
thank you @Maik Skoddow , actually the issue is the fields are not disappearing from case creation page, they do changed to not mandatory...