Do Not Default Subject Person in HR Service Configuration is not working

TahiraS
Tera Expert

I created new HR Service for offboarding in two different instances exactly the same way

in first instance the subject person is not defaulted

and in second instance it is getting defaulted to opened for
How can I clear the subject person field while creating the case on the UI Page

2 ACCEPTED SOLUTIONS

kaushal_snow
Mega Sage

Hi @TahiraS ,

 

Although the Do Not Default Subject Person option exists, it does not work when using the Case Creation UI page because the system still populates the field during UI rendering. To prevent this, remove the Subject Person field from the Case Creation form using sn_hr_core_config_case_creation. For finer control or more complex logic, consider customizing the hr_CaseCreation Script Include....

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

View solution in original post

TahiraS
Tera Expert

Figured it out
The case creation configuration page by default (without picking an HR Service) shows Subject Person field.  That needs to be removed from tab Case Creation.  After that when HR Service is picked, it will show the Subject Person (if its in the case creation configuration) and it will be blank if the case option says: Do Not default Subject person.

View solution in original post

2 REPLIES 2

kaushal_snow
Mega Sage

Hi @TahiraS ,

 

Although the Do Not Default Subject Person option exists, it does not work when using the Case Creation UI page because the system still populates the field during UI rendering. To prevent this, remove the Subject Person field from the Case Creation form using sn_hr_core_config_case_creation. For finer control or more complex logic, consider customizing the hr_CaseCreation Script Include....

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

TahiraS
Tera Expert

Figured it out
The case creation configuration page by default (without picking an HR Service) shows Subject Person field.  That needs to be removed from tab Case Creation.  After that when HR Service is picked, it will show the Subject Person (if its in the case creation configuration) and it will be blank if the case option says: Do Not default Subject person.