System Information
- Strapi Version: 4.2.0
- Operating System: MacOS
- Database: Postgres
- Node Version: 16.15
- NPM Version: 6.14.15
- Yarn Version: 1.22.17
Context: I have a collection type called Product, and this product has two one-to-many relations: Category and Subcategory. Each Product must have a Category. Each Category has an optional one-to-many relation with Subcategory. So, a Product must have a Subcategory only if the Category selected has any Subcategories.
Basically, all I want to do is to filter the options on Subcategory relation’s field based on the Category selected. It will show empty if no Category is selected or if the Category selected does not have a Subcategory.
I’m hoping to maintain the same way it was in the v3 version (layout wise), where I have made an extension of the content-manager plugin to override the SelectWrapper component (and some other components too) to have this business logic. I have searched everywhere and found nothing about this for the strapi v4.
So, how can I achieve this? Is this even possible?