ui policy - mandatory to table fields - not working on case creation page in workspace

Firas Kh
Tera Expert

Hi Experts,

i have hr services that their fields need to be displayed on the "case creation page" form in the workspace.

in order to do that we did added the fields to the tables of coe (payroll and benefits), some of the fields should be visible as mandatory in just one of the services, so added those fields to the table without setting the value for mandatory/visible, and added a ui policy to put these fields as mandatory once the condition is true (hr service = the name of the right hr service), this ui policy is not working the fields are not mandatory on the case creation page (before submitting an hr case), checked this with alerts inside the script under the ui policy seems that the policy is validating once refreshing the "case creation page" once and when selecting the coe + hr service type the ui policy is not working again to check the madatory fields. see the attachments:

FirasKh_0-1697758886347.png

 

FirasKh_1-1697758939714.png

 

2 REPLIES 2

AnveshKumar M
Tera Sage
Tera Sage

Hi @Firas Kh 

Have you tried making this UI Policy view specific instead of global?

 

Just clear the Global flag and input workspace in view field and save then try once.

Thanks,
Anvesh

Hi @AnveshKumar M ,

i tried to do this - not working: also tried to change order of ui policy and it didn't help, have more ideas? thanks!

FirasKh_0-1697840578857.png