© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
9 replies
ROOT-LEE

Unable to save hidden() fields to database !!

Hi,
Step::make('Etap 7')
                ->description("Montant Octroyé")
                ->schema([
                    Fieldset::make('Montant Octroyé')
                        ->relationship('granted_amount')
                        ->schema([

                            TextInput::make('granted_amount')
                                ->label('Montant Octroyé'),


                            TextInput::make('current_year')
                                ->label('current_year'),


                            TextInput::make('annee_inscription')
                                ->label("Année d'inscription")->hiddenn()
                                ->default(date("Y") . "/" . date("Y") + 1),

                        ]),
                ]),
Step::make('Etap 7')
                ->description("Montant Octroyé")
                ->schema([
                    Fieldset::make('Montant Octroyé')
                        ->relationship('granted_amount')
                        ->schema([

                            TextInput::make('granted_amount')
                                ->label('Montant Octroyé'),


                            TextInput::make('current_year')
                                ->label('current_year'),


                            TextInput::make('annee_inscription')
                                ->label("Année d'inscription")->hiddenn()
                                ->default(date("Y") . "/" . date("Y") + 1),

                        ]),
                ]),


And when I debug
protected function afterCreate(): void
    {
        dd("After", $this->data);

    }
protected function afterCreate(): void
    {
        dd("After", $this->data);

    }

The data is displayed
 "granted_amount" => array:3 [▼
    "granted_amount" => null
    "current_year" => null
    "annee_inscription" => "2023/2024"
  ]
 "granted_amount" => array:3 [▼
    "granted_amount" => null
    "current_year" => null
    "annee_inscription" => "2023/2024"
  ]

Do you have any idea?
Thanks.
Solution
Okay , thank you, i will try it
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Hidden fields
FilamentFFilament / ❓┊help
3y ago
Include hidden fields
FilamentFFilament / ❓┊help
12mo ago
Empty hidden fields
FilamentFFilament / ❓┊help
2y ago
hidden fields V3
FilamentFFilament / ❓┊help
3y ago