© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
8 replies
rg.block

Is it possible to dynamically set ->defaultItems to be the value from another field?

I am toying with this, but I am not even sure if it is valid.

->defaultItems(fn (Closure $get) => $get('../../number_of_documents') != null)
->defaultItems(fn (Closure $get) => $get('../../number_of_documents') != null)


Where number_of_documents is a text input of type number outside the repeater
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

Set FileUpload value from another field
FilamentFFilament / ❓┊help
2y ago
How to set value to createOptionForm from another field?
FilamentFFilament / ❓┊help
2y ago
Value from another field
FilamentFFilament / ❓┊help
3y ago
Set value of another field from within default
FilamentFFilament / ❓┊help
3y ago