© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Wim

Different sections on Create and Edit form

I have a form with a grid and 4 sections as follows:
 public static function form(Form $form): Form {
   return $form
     ->schema([
         Grid::make(4)
           ->schema([
              Section::make(__('products.general_info'))
              Section::make(__('products.publish_info'))
              Section::make(__('products.medical_social_info'))
              Section::make(__('products.media'))
      ]);
 }
 public static function form(Form $form): Form {
   return $form
     ->schema([
         Grid::make(4)
           ->schema([
              Section::make(__('products.general_info'))
              Section::make(__('products.publish_info'))
              Section::make(__('products.medical_social_info'))
              Section::make(__('products.media'))
      ]);
 }

As it is now all 4 sections are displayed on the create and the edit page. I would want to change it so that section
publish_info
publish_info
is only shown on the edit page.
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

Different form fields for Edit & Create
FilamentFFilament / ❓┊help
2y ago
Different forms for create and edit
FilamentFFilament / ❓┊help
3y ago
Different UI for Create/Edit and View?
FilamentFFilament / ❓┊help
3y ago
Enum select with live() on Create and Edit form
FilamentFFilament / ❓┊help
2y ago