Add a Subcategory in Detail Item Family

Hello,
I have never tried it (but will try if and when I’ll have spare time) but if you have some python knowledge you could try and look at this:

Once you manage to get it working on one family you should implement it to work on multiple families, something like this: