© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
16 replies
dyo

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:
1. room_id, which is later will have to get a price attribute from room model, required
2. discount, numeric input, not required
3. additional_services (with repeater), has name and price attribute, can be 0 items or not required.

So later, the input price will be a calculated data of those above 3 inputs.
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..
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Dynamic form fields based on dependant fields
FilamentFFilament / ❓┊help
3y ago
Multiple dependant fields / clearing on change
FilamentFFilament / ❓┊help
2y ago
Dependant TextInput
FilamentFFilament / ❓┊help
2y ago
Dependant Select
FilamentFFilament / ❓┊help
3y ago