The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Unable to dynamically filter HR service field using client script due to OOB advanced reference qual

manisnow122
Tera Contributor

Hi Community,

I'm working on a requirement where I need to dynamically filter the hr_service reference field based on the selected assignment group using a client-side onChange script.

 

Issue:

Even though the script executes and returns the expected filter string (e.g., hr_criteria=b122d28fdb766784cdb9d2984b961), the hr_service field does not apply the filter. I suspect this is because the field already uses an OOB advanced reference qualifier via the Script Include.

I do not want to modify the OOB Script Include.

 

What iam looking for is, i want the reference qualifier to work as it is essential and I want my requirement to be added as extra filter ie., both the filters needed to be applied on the field.  

 

Any guidance or best practices would be greatly appreciated!

Thanks in advance!

3 REPLIES 3

Susan Britt
Mega Sage
Mega Sage

What exactly is the use case/business requirement?  Where are you trying to limit the returned HR services based on the selected Assignment group?

manisnow122
Tera Contributor

Hi,

I have a requirement where the hr_service field on the HR Case form should show services based on two conditions:

  1. If a subject person is selected, show HR Services matching their HR Criteria (this works via the OOB reference qualifier).
  2. If a specific assignment group (e.g., "HR Snow Group") is selected, show only HR Services with a specific HR Criteria (e.g., "HR Snow Employees").

Currently, the OOB reference qualifier filters services based on the subject person, but it also includes global criteria services that aren't relevant to the selected assignment group.

I’ve tried using a client script with g_form.setFilter() and a Script Include to apply the assignment group filter, but it doesn’t override the OOB qualifier.

 

Thanks in advance!

 

manisnow122
Tera Contributor

Hi,

I have a requirement where the hr_service field on the HR Case form should show services based on two conditions:

  1. If a subject person is selected, show HR Services matching their HR Criteria (this works via the OOB reference qualifier).
  2. If a specific assignment group (e.g., "HR Snow Group") is selected, show only HR Services with a specific HR Criteria (e.g., "HR Snow Employees").

Currently, the OOB reference qualifier filters services based on the subject person, but it also includes global criteria services that aren't relevant to the selected assignment group.

I’ve tried using a client script with g_form.setFilter() and a Script Include to apply the assignment group filter, but it doesn’t override the OOB qualifier.

 

Thanks in advance!