© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago•
1 reply
ffffer.

2 form components with same statePath, keyValue broken

                    Forms\Components\Section::make()
                        ->schema([
                            Forms\Components\KeyValue::make('configKeyValue')
                                ->statePath('config')
                                ->visible(function ($get) {
                                    return !class_exists("\\App\\Data\\PSP\\" . $get('code'));
                                })
                                ->reactive(),
                            Forms\Components\Repeater::make('configData')
                                ->reactive()
                                ->statePath('config')
                                ->visible(function ($get) {
                                    return class_exists("\\App\\Data\\PSP\\" . $get('code'));
                                })
                        ])
                        ->columnSpan(2),
                    Forms\Components\Section::make()
                        ->schema([
                            Forms\Components\KeyValue::make('configKeyValue')
                                ->statePath('config')
                                ->visible(function ($get) {
                                    return !class_exists("\\App\\Data\\PSP\\" . $get('code'));
                                })
                                ->reactive(),
                            Forms\Components\Repeater::make('configData')
                                ->reactive()
                                ->statePath('config')
                                ->visible(function ($get) {
                                    return class_exists("\\App\\Data\\PSP\\" . $get('code'));
                                })
                        ])
                        ->columnSpan(2),



Using that code, when I store using the KeyValue, it's saved data well in the db, but when I load the contents:

Key: 1db3d6bd-75c7-428f-b890-2844bf411fd2
Value: Value

(attached image)

Repeater works well. Maybe a bug in Keyvalue?

Thanks
SPOILER_imagen.png
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

Form - KeyValue
FilamentFFilament / ❓┊help
2y ago
KeyValue - Form Builder - Fields
FilamentFFilament / ❓┊help
2y ago
statePath variable missing some form fields
FilamentFFilament / ❓┊help
14mo ago
`statePath` and `visible` nested components not working together
FilamentFFilament / ❓┊help
3y ago