HRSD
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2024 06:17 AM
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2024 09:33 PM
@ash_1998 Please create an onChange client script on HR Case (sn_hr_core_case) table as follows.
Here is the script.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
//Type appropriate comment here, and begin script below
if(newValue=='8c1db1099f231200d9011977677fcf59'){//Replace sys_id with the sys_id of your Serivce
g_form.removeOption('contact_type','email');
g_form.removeOption('contact_type','phone');
}
}
Note: On line number 6 replace the sys_id with the sys_id of your HR Service where you would email and phone contact types to be removed.
Hope this helps.