FilamentF
Filament2y ago
MZX

How to hide the field but still get the data

I have a submission date field, which i want to automatically be set to now, but i have hidden it, so now the input isn't being fetched when the form is submitted

Forms\Components\DateTimePicker::make('submission_date')
                    ->hidden()
                    ->default(now())
                    ->dehydrated(),
Was this page helpful?