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 01:12 AM
Hi @tpeleg
again: "whenever a field is mandatory, it is not possible to hide it. There are many ways to make a field mandatory"
For example, if a field was declared as "read-only" o the database level, you cannot change it.
So if you don't share more details, it's difficult to help you.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 02:28 AM
@Maik Skoddow Thanks again. it helped. throght the field watcher I found some OOTB ui policy that turns field to mandatory, and I turned it off. now it's working perfctly in the back end but not on create new case from the the workspace 😥
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 02:32 AM
Hi @tpeleg
for Workspaces you have to create UI Policies which are using the respective Workspace view
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:17 AM
Hi @tpeleg ,
U can do 1 thing in script tab of UI policy when condition is false then write a script stating
g_form.setMandatory('field_name',false);
g_form.setDisplay('field_name',false);
Similarly add extra lines of code for another field.
Make sure the Script tab contains execute on ALL instead of desktop.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 02:29 AM
Thanks again @Danish Bhairag2 , it's working but only on the backend side 😥