Display HR Service Table Fields on Generated Record

leahdany
Giga Guru

I am trying to display fields for an HR service on the generated record by adding said fields to the HR Service record in the "HR Service Additional Information" tab and the "Service table fields" field. I am doing so in following step 3 in this Community answer, but the fields are not showing on the generated record.

Here's my "HR Service Additional Information" tab for the HR Service.

find_real_file.png

Yet when I look at the case this service generated I'm not seeing these fields. What do I need to do to get these to show?

find_real_file.png

Bottom of form:

find_real_file.png

1 ACCEPTED SOLUTION

leahdany,

Okay, I see what you were saying now, sorry I misunderstood. 

On the HR case table, you can find a UI policy named Show HR service fields on load, in the script part of this UI policy setServiceDisplay function controls the visibility of the HR Service fields. [child and parent fields]

Counter attacking this UI policy, another UI policy named Hide HR service fields and related lists is responsible for Hiding the HR Service fields. [It only takes parent HR service fields, not the Child]

Use case 1: if you create the fields on Child case Tables, the field never gets hidden 

1. created a custom column test1 to the HR workforce Admin Case table,[child table]

2. Configured the Service Table fields in the HR Service with test1 field

3.  test1 field is VISIBLE on the HR workforce Admin Case table when I open it.[No UI policy to hide it as UI policy:Hide HR service fields and related lists only hides Parent table fields]

Use case 2: if you create the fields on Parent case Table, the field gets hidden and displayed properly

1. created a custom column test2 to the HR Case table,[parent table]

2. Configured the Service Table fields in the HR Service Without test2 field

3. test2 field is HIDDEN on the HR workforce Admin Case table when I open it.[UI policy:Hide HR service fields and related lists]

4.  Configured the Service Table fields in the HR Service With test2 field

5. test2 field is VISIBLE on the HR workforce Admin Case table when I open it.[UI policy:Show HR service fields on load]

Something Silly: check the Form layout to see if the fields are configured to exist on the form in the first place.

Thank you,

Aman Gurram

View solution in original post

14 REPLIES 14

michaelj_sherid
ServiceNow Employee
ServiceNow Employee

Did you create the custom fields on the Workforce admin table, or the base HR Case?

There is an OOB UI Policy that shows the fields & Related Lists and another OOB UI Policy that hides all of the service table fields. You will have to add your fields to the UI policy to hide the fields. The UI Policy to show them - Show HR service fields on load, is a script, so you would not need to add your fields here, but would need to meet the conditions of the script.

Regards,

Mike

Hi Mike, I created the fields on the Workforce Admin table. So I should look for the UI Policy “Show HR service fields” and see if my fields meet the conditions? You said something about adding my fields to a UI Policy, which one?

The other UI policy is called -Hide HR service fields and related lists

I'm looking at the UI Policy "Show HR service fields on load" and it looks like the fields should be showing because the record meets the conditions for the script to run. I did not add my fields to the "Hide HR service fields and related lists" UI Policy because I'm trying to show them and that policy sets visible to false.