© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
Zyten

Using disabledOn('edit') with fieldsets seems to make the fields empty on save

I did the same for a bunch of standard fields (Select, TextInput etc) and they work as expected. My goal is to make everything except two TextInput readonly when on the Edit form. Would also be happy to know if there are other ways to achieve this besides disabledOn('edit'). Thank you

Forms\Components\Fieldset::make('income')
->label('Income')
->schema([
    Forms\Components\Select::make('income.bracket')
        ->required()
        ->disabledOn('edit')
        ->placeholder('Select')
        ->native(false)
        ->options(IncomeBracketEnum::class)
        ->selectablePlaceholder(false)
        ->reactive(),
    Forms\Components\TextInput::make('income.amount')
        ->required()
        ->disabledOn('edit')
        ->numeric()
        ->minValue(0)
        ->default(0)
        ->reactive(),
  ])
Forms\Components\Fieldset::make('income')
->label('Income')
->schema([
    Forms\Components\Select::make('income.bracket')
        ->required()
        ->disabledOn('edit')
        ->placeholder('Select')
        ->native(false)
        ->options(IncomeBracketEnum::class)
        ->selectablePlaceholder(false)
        ->reactive(),
    Forms\Components\TextInput::make('income.amount')
        ->required()
        ->disabledOn('edit')
        ->numeric()
        ->minValue(0)
        ->default(0)
        ->reactive(),
  ])
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

disabledOn using user role
FilamentFFilament / ❓┊help
3y ago
Form component Section have empty fields on edit entity page
FilamentFFilament / ❓┊help
3y ago
Save edit form with two fields: Select & Livewire table component
FilamentFFilament / ❓┊help
17mo ago
Fields Empty on View Page
FilamentFFilament / ❓┊help
3mo ago