Can I hide a field on the HR Case Form if the request was submitted through self-service (Portal)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 07:17 AM
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.
I thought just setting up a UI Policy would solve my problem, but it didn't.
Is there any advice or recommendation that would help me achieve this goal?
Thanks
- Labels:
-
Human Resources Service Delivery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 02:10 PM
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);
}
}
______________________________________________________________________
______________________________________________________________________
Then, I have this UI Policy in place:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 09:58 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 10:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 06:55 AM
Unfortunately, it is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 02:25 AM
Hi @Hola Ola Is this still an open issue?