Creating a custom subcategory

kim-lindgren
Kilo Sage

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? 

1 ACCEPTED SOLUTION

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

View solution in original post

6 REPLIES 6

SatyakiBose
Mega Sage

Hello @kim-lindgren 

Please do the following:

  1. Open the dictionary entry of sub category field
  2. Set the dependent as the category field.
  3. Now go to the choices field
  4. 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:
    SatyakiBose_0-1678346550300.png

    Your category and sub category field should work now.

 

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?

 

kimlindgren_0-1678347900399.png

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.

kimlindgren_1-1678348017857.png