hide subcategory option Client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2023 04:29 AM
Hi All
I have a requirement that if the Assignment group is "ABC" and category is 'abc' then it should hide few of the subcategories dependent on category.
I have written onChange of assignment group and category Client script, only assignment group CS is working not the category. Category Client script is working for a few sec but again it is showing all the dependent subcategories.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2023 05:17 AM
I am just giving the example which you can test in your instance for Incident table.
The code will execute for a sec and clear of the value in subcategory. But after few sec, the subcategory choices will be populated with all dependent values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2023 05:31 AM
There are three equals to for category
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2023 05:40 AM
UI Type change to All
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2023 08:48 AM
no, not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 01:25 AM - edited 10-04-2023 03:12 AM
Hi @ST9 ,
You can go to subcategory choices and under Dependent value of 'inquiry'<value of category drop down> you can mark the inactive as true and then those values will be hidden.
Post this you can implement your logic of adding options in the choice list
Please mark helpful / correct if my answer helped you.