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

Hello @Sandeep Rajput , 

I have this Client Script that populates that field 

function onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue == '') {
        return;
    }
   // alert('test)');
    //Type appropriate comment here, and begin script below
    var abc = g_form.getValue('subject_person');
    var ga = new GlideAjax('sn_hr_core.getUserHRProfileInformation');
    ga.addParam('sysparm_name', 'getUserHRProfileInformation');
    ga.addParam('sysparm_user', abc);
    ga.getXMLAnswer(getResponse);

    function getResponse(response) {
      //  alert(response);
        g_form.setValue('u_appraisal_due_date', response);
    }
}

______________________________________________________________________

HolaOla_0-1727298485847.png

______________________________________________________________________

Then, I have this UI Policy in place:

 

HolaOla_1-1727298610615.png

 

 

 

Hi @Hola Ola 

Can you inactivate this ui policy and update conditions in the ui policy we are working, make sure only one ui policy is working .

 

Conditions:

Hr service is team member introductory [And]

Source (contact_type) is not Self service

 

Ui policy action:

Appraisal due date to visible to true

 

@Hola Ola Please update your UI Policy as follows.

 

HolaOla_1-1727298610615.png

@Sandeep Rajput 

Unfortunately, it is not working. 


amaradiswamy
Kilo Sage

Hi @Hola Ola  Is this still an open issue?