- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2025 09:21 PM
I want to make a onchange client script When a user selects a category, automatically set a default subcategory using client scripts on incident table
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2025 04:28 AM
For this, you have to create Onchange Client script and set field name to category.
PS: At first, try every task on your own for better understanding and then if you stuck somewhere then we will definitely help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2025 09:48 PM
In that case I will suggest to start from your side as it will be learning for you as well.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2025 09:35 PM
You have to get data from server side depneding on category. So you need client script and script include to get data from server.
Client Script:
Script Include :
If my response helped please mark it correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2025 04:28 AM
For this, you have to create Onchange Client script and set field name to category.
PS: At first, try every task on your own for better understanding and then if you stuck somewhere then we will definitely help you.