Hide options and add options in Suspended Reason in Dialog box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2024 08:15 PM - edited 09-16-2024 01:25 AM
Hi All,
Can we hide options/add options in "Reason" field when "Suspend" button is clicked based on HR Service ?
I created an OnLoad Client Script, seems working on the form field. However, in the dialog/pop box, it's not updated.
I checked that the dialog box is configured in the UI Page "HR Suspend Dialog", can you help me update the choices based on case HR Service?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2024 08:33 PM
@ss123 Can you please provide script you created. Also is it choice filed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2024 08:36 PM
Here is my script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 01:40 AM
The script is only working on the case form, but not in the pop up dialog box.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 02:18 AM
Step-by-Step Solution for Updating "Reason" Field Choices in HR Suspend Dialog Based on HR Service
Solution:
1. Go to Tables:
- Navigate to the Tables section in ServiceNow.
2. Search for the "sys_choice" Table:
- In the filter navigator, search for the table named `sys_choice`.
3. Go to List View and Apply Filters:
- In the `sys_choice` list view, apply filters:
- Table: `sn_hr_core_case`
- Element: `sla_suspended_reason`
4. Add/Modify Options:
- Now, you can add or modify the options in this list. These options will then populate in the dialog box when the "Suspend" button is clicked, reflecting based on the HR Service.
---
Mark my answer helpful & accepted if it helps you resolve your query.
Thanks,
Siddhesh Jadhav