How to prevent 'Subject Person' from defaulting to 'Opened For' in HRSD case creation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 08:22 AM - edited 06-07-2023 08:35 AM
Hello all,
On the case creation page, when I type in the name of my 'opened for', I am looking to not have that user default to the 'subject person' field. As shown below.
I have tried to de-activate the 'Auto populate subject person' client script, which hasn't worked:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '' || (typeof g_aw !== 'undefined' && g_form.isNewRecord()))
return;
var subjectPerson = g_form.getValue("subject_person");
g_form.getReference('hr_service', setSubjectPerson);
function setSubjectPerson(serviceGr) {
var DO_NOT_DEFAULT_SUBJECT_PERSON = '5ad4d1709f402200d9011977677fcfbb';
if(!subjectPerson && !serviceGr || (serviceGr && String(serviceGr.case_options).indexOf(DO_NOT_DEFAULT_SUBJECT_PERSON)=== -1 ))
g_form.setValue("subject_person",g_form.getValue("opened_for"));
}
}
Any help on this issue will be appreciated.
Thank you.
- Labels:
-
Human Resources Service Delivery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 09:31 AM
Hello,
Please check script include:-
hr_CaseCreation
I think this is from where the subject person is getting populated.
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2023 06:16 AM
You would not script this.
On the HR Service record there is a field called "Case options" and there is an option called "Do Not Default Subject Person". Select that for the HR Service(s) that you want to apply it to.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 10:43 AM
@Max Dore Does not work in the Case Creation page, where the user has to first select the employee (step 1) and then select the service in the next screen (step 2).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 04:03 PM
You can achieve this by use of the Case options: "Do not default subject person" and also creating a case creation service config for the HR service and taking out the subject person field on the right task fields. See screenshot below.