- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 11:14 PM
I need to create a custom subcategory in a table I created myself. I know that you can set a dependent field for subcategory items, e.g. in the Incident table. But somehow, 'category' and 'subcategory' already seem to be linked on the incident table. I have a table with 'type' and 'subtype' fields and no matter how I set the dependent fields, nothing happens. This is not surprising because I probably have to tell the system somehow that the 'subtype' field as a whole is going to be dependent on 'type'. How do I do this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 12:11 AM
Hi @kim-lindgren ,I don't think so we need to create any client script, I just wanted to confirm on what you have did at your end something link this.
somehow it work out of the box .
Here is a video they did same thing, have a look.
Dependent Choice Fields Like Category & Sub-Category in Incident
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 11:22 PM
Hello @kim-lindgren
Please do the following:
- Open the dictionary entry of sub category field
- Set the dependent as the category field.
- Now go to the choices field
- here in the label column, give the label of the subcategory and the value of the subcategory choice. in the Dependent value, give the value of the category field value (not the label). it should look like this:
Your category and sub category field should work now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 11:47 PM
Hi,
I think I have done all this. What I don't understand is point 2 - should I set the dependent somewhere else except for the choice fields?
In the choices field, I already set the dependent value to chart_point (I also tried to the label 'Chart point' just to be sure). This is in the 'subtype' field. It hasn't changed anything.
This is what the 'type' choices look like.