Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentβ€’2y agoβ€’
7 replies
_𝕰𝖋x

Not Loading Data from Fieldset->relationship()

I have a Fieldset with hasOne relationship() and my form schema(), like here:

Select::make('metadata_id')
    ->relationship(name: 'metadata', titleAttribute: 'title')

Fieldset::make('Metadata')
    ->relationship('metadata')
    ->schema([
        TextInput::make('title'),
        Textarea::make('description'),
        FileUpload::make('image'),
    ])->disabled()
Select::make('metadata_id')
    ->relationship(name: 'metadata', titleAttribute: 'title')

Fieldset::make('Metadata')
    ->relationship('metadata')
    ->schema([
        TextInput::make('title'),
        Textarea::make('description'),
        FileUpload::make('image'),
    ])->disabled()


The form has ->disabled() because I only want it to show the data. I selected the correct one in the Select-field and saved the form. But after reloading the page it does not load the data.
Solution
I changed it to belongsTo relationship, now it works πŸ‘
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Fieldset relationship fields doesn't load data
FilamentFFilament / β“β”Šhelp
3y ago
Filament 3 Fieldset relationship not storing
FilamentFFilament / β“β”Šhelp
4mo ago
Nested Fieldset and relationship
FilamentFFilament / β“β”Šhelp
3y ago
Nested relationship form data not loading
FilamentFFilament / β“β”Šhelp
3mo ago