Hi, I want to implement a conditional field in the create/edit form but can’t seem to find how to, or if it’s even possible.
I have a Categories table with a column isParent (TinyInt) and another column categoryParent, which is a relationship to the same table.
Expected behavior
In a dropdown only display categories not having a parent category. If a parent category is selected, then display another dropdown with the selected parent category’s sub-categories.
Actual behavior
All categories (parent categories and sub-categories) in the same dropdown.
Context
Please provide any relevant information about your setup.
- Database Dialect: MySQL