You can not do this with default Mx, so you have a couple of options:
- Use a widget like this one: https://appstore.home.mendix.com/link/app/56183/
- Instead of using a enum, you could create an entity and associate it to your main entity. That way, your category and subcategory will be maintainable in your application and you can constrain the drop-down to your liking.