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

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

@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 😥

Hi @tpeleg 

for Workspaces you have to create UI Policies which are using the respective Workspace view 

Maik

Danish Bhairag2
Tera Sage
Tera Sage

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

 

Thanks again @Danish Bhairag2 , it's working but only on the backend side 😥