© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
lost a fight with a steamroller

Auto-populating a repeater based on another field

I have a repeater that needs to be populated based on another field.

For example in a Select I might have three different options and different options may then require the repeater to have 1, 3 or 5 items.

Currently I'm using $set() and setting the data manually but it seems kind of bad practice and I suspect their might be a better method to achieve this behaviour.

I cannot use defaultItems() as the dependent field is expected to update reactively, and as far as I'm aware defaultItems is only called once, on the initial form load.

Any help would be appreciated, thanks!
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Auto add empty repeater based on a value in another field
FilamentFFilament / ❓┊help
2y ago
Add a custom property to a SpatieMediaLibraryFileUpload based on another text field in Repeater
FilamentFFilament / ❓┊help
2y ago
Repeater show field based on line number
FilamentFFilament / ❓┊help
3y ago
Repeater and auto-increment field
FilamentFFilament / ❓┊help
2y ago