Hide options and add options in Suspended Reason in Dialog box

ss123
Tera Contributor

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.

10 REPLIES 10

SN_Wizard
Tera Contributor

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

Screenshot (169).png

Screenshot (170).png

Screenshot (173).png

  





Siddhesh Jadhav
Kilo Sage

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

Screenshot (169).png

Screenshot (170).png

Screenshot (173).png

  

 

 

Community Alums
Not applicable

It worked for me!
Thanks @Siddhesh Jadhav !!

@Siddhesh Jadhav please let me know how to hide the choices based on the HR Service present on the Case. I dont want to show all the choices everytime.

Hey, did you ever find out how to do this? I have the same requirement, depending on the HR Service some choices should be visible.