Hi Community,
I have two BaseEnums:
-VehicleType
-VehicleCategorie
VehicleType:
1 Car
2 Truck
VehicleCategorie
1 small
2 midrange
3 compact
4 Truck Class 1
5 Truck Class 2
6 Truck Class 3
I have a priceTable with Fields : CarTyp, CarCategorie, Model & Price.
Now I want to make a restrictions. Like if I choose for CarType: "Car" only the first 3 values(Options) from CarCategorie shall be shown to me.
And for "truck" the last three shall be shown.
Any Suggestions where I could start ?
I thought maybe starting in the validateField() method. Based on the selection I make for my CarType I could say in validateField() that only Categories are allowed which match to that CarType.
Or could I use Conditional Table Relations ?
*This post is locked for comments