Client scripts installed with Human Resources

Human Resources Application: Core adds the following client scripts.

Client script Table Description
Reset priority on opened_for change HR Case

[hr_case]

Adjusts HR case priority based on whether the user is a VIP.
Auto populate fields HR Case

[hr_case]

Automatically sets location and department fields in HR cases, based on details from the user associated with that record.
Populate profile and assignment group HR Case

[hr_case]

Populates the Assignment Group and HR profile fields (if the Opened for user has an HR profile) in an HR case.
Custom Knowledge Search HR Case

[hr_case]

Custom knowledge search in the HR case form view.
End date must be after start date HR Employment History

[hr_employment_history]

Validates that the employment end date is not before the employment start date.
Enforce unique user HR Profile

[hr_profile]

Prevents creating a profile when the selected user already has an HR profile.
Hide Record Producer variables HR Case

[hr_case]

Hides record producer variables which would otherwise be displayed in the HR case form view.
Highlight VIP employee HR Case

[hr_case]

Formats an HR case for a VIP user in the HR case list.
Populate Category using template HR Case

[hr_case]

Populates the category based on the selected HR template.
Populate fields using sys_user HR Profile

[hr_profile]

Updates fields in a new HR profile record when an existing user is selected.
Populate HR profile onChange HR Case

[hr_case]

Updates the HR profile fields in an HR case automatically when the Opened for user is changed.
Populate Opened for field onChange HR Case

[hr_case]

Updates the Opened for field when a profile is added to an HR case.
Populate template using category HR Case

[hr_case]

Populates the template on an HR case when a category is changed.
Start date must be before end date HR Employment History

[hr_employment_history]

Validates that the employment start date is not after the employment end date.
Field Access [onLoad] hr_profile Sets HR Profile fields to read only if the user does not have the hr_case_writer role.
update manager when department changes hr_case When the Department field is updated, set the Manager field if the case is an Onboarding case.
Set Category hr_document_template Sets the default value for the Category field to Employment Verification.
Clear task on change of user hr_document_acknowledgement If the user in the referenced task is changed, disassociate the document acknowledgement.
EnforceFields hr_case Ensures that the form cannot be submitted unless the mandatory fields are completed.
Populate Department from Position hr_case If the case is Onboarding, set the Department field when the Position field is updated.
Validate Email Address on submit hr_emergency_contact Ensures that the email address is valid when the form is submitted.
Make Ack Type mandatory in HR Task. hr_task Make the Acknowledgement type field mandatory when assigned to an Opened for user on the HR case.
User field is only writable for hr_admin hr_profile User field on the hr_profile form is read-only for all the users except for hr_admin users.