How can we hide a specific Subcategory option from the Subcategory choice list on the Incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
We have a business requirement on the Incident form to hide one specific Subcategory option when the Category is set to Application. Both fields (Category and Subcategory) are standard choice fields on the Incident table.
We cannot deactivate this Subcategory choice at the dictionary level because:
- The same Subcategory is still needed and actively used in other forms and processes, and
- We are creating a new Catalog Item where this Subcategory must remain visible under the Application category by default.
Because of this, the Subcategory must remain active, but it should be hidden only on the Incident form when Category = Application. All other Subcategory choices must remain available.
Can anyone advise on the best approach to achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Do we need to re‑add all 40+ options using
g_form.addOption() to achieve this?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 19m ago
Hi @Ria ,
In fresh Zurich PDI, removeOption() is not working any more ( though its working in our upgraded old client instance ).
Please follow the steps (using Script include ) as per KB article :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
this is an easy requirement with onChange client script and using g_form.removeOption('subcategory','choiceValue');
Note: give exact choice value to remove
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
