Suggestion for dependant fields
Can someone suggest me what is the best approach for dependant fields..
In my case, I want my input total_price to be dependant to:
Currently the form is in resource class..
I'm using filament v2.
In my case, I want my input total_price to be dependant to:
- room_id, which is later will have to get a price attribute from room model, required
- discount, numeric input, not required
- additional_services (with repeater), has name and price attribute, can be 0 items or not required.
Currently the form is in resource class..
I'm using filament v2.
Solution
thanks for your response before..
I've decided to calculate what's in repeater in afterCreate method..
I've decided to calculate what's in repeater in afterCreate method..