HR Checklist in HR cases visibility restriction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 03:06 AM
Hi all,
There is a requirement in our project for "checklist on HR cases" to be visible based on country wise. We want to make these checklists to be visible for only 1 country and not others. All the countries are using the same HR service. Can someone please tell if we can restrict checklist based on subject person's country on the HR case?
If yes, please provide the steps to implement the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 03:32 AM
Try onload client script something like this :
function onLoad() {
var country = g_user.country.getDisplayValue();
if (country == 'USA') {
g_form.getElementById('inlineChecklistApp').style.display = "none";
}
}
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 04:15 AM
inlineChecklistApp- I believe this a Checklist name which you are passing through the method "getElementById". Can you please clarify? @Sohail Khilji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 04:18 AM
here you need to pass the element id of hr check list field.
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 04:09 AM
Hello,
Checklists are by default part of the HR Service, so you can only achieve this by creating a script (which is customization) or you can let the other countries use a separate HR Service without a checklist.
Example:
HR Service 1 with checklist = Used by NL based on criteria
HR Service 2 without checklist = used by other countries based on criteria
You can filter the use of the services by HR- or User Criteria.