Can I hide a field on the HR Case Form if the request was submitted through self-service (Portal)

Hola Ola
Giga Guru

Hello, 

 

I have a field, Appraisal Due Date, on an Employee Relations case form, which I'll like to HIDE if the form was submitted via the self-service portal

HolaOla_0-1727273624362.png

 

I thought just setting up a UI Policy would solve my problem, but it didn't.

 

HolaOla_1-1727273775513.png

 

Is there any advice or recommendation that would help me achieve this goal?

 

Thanks

13 REPLIES 13

@amaradiswamy 

Yes, unfortunately, none of the suggestions have worked.

Hi @Hola Ola 

Check below:

 

1. Go to sys_ui_policy_action.LIST

2. Search with table -- contains -- sn_hr_

3. Field name --contains-- u_appraisal_due_date

 

Let us know how many UI policies returned

 

Check the client script as well.

Go to sys_script_client.LIST

Apply the filter, script --contains--u_appraisal_due_date

Let us know if any client scripts returned with screenshots if possible

Hello @amaradiswamy 
Here's a screenshot of what returned from sys_script_client.LIST

 

HolaOla_0-1727709337410.png

And Here's what returned from sys_ui_policy_action.LIST

 

HolaOla_1-1727709485234.png

 

 

Hi @Hola Ola 

 

There is only one UI policy so it should work if you modified the conditions of UI policy.

 

In the client scripts, if there is no g_form.setDisplay() method is used then you can ignore otherwise you need to adjust client script as well