© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
Barbaracrlp

Different Form in the same resource

It may be a silly question but how can I change the form in the edit page of a resource? I'm going to use the same one I got defined in the resource.php but with a little more info.
Solution
I mean, fields 3 and 4 will be visible only in the edit form..
Forms\Components\TextInput::make('field1'),
Forms\Components\TextInput::make('field2'),
Group::make([
    Forms\Components\TextInput::make('field3'),
    Forms\Components\TextInput::make('field4')
])->visibleOn('edit')
Forms\Components\TextInput::make('field1'),
Forms\Components\TextInput::make('field2'),
Group::make([
    Forms\Components\TextInput::make('field3'),
    Forms\Components\TextInput::make('field4')
])->visibleOn('edit')
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

2 Different Tables For The Same Resource
FilamentFFilament / ❓┊help
2y ago
Render data from two resources in the same form
FilamentFFilament / ❓┊help
3y ago
Modal in form Resource
FilamentFFilament / ❓┊help
3y ago
Details in Resource form
FilamentFFilament / ❓┊help
3y ago