© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
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(),
Forms\Components\DateTimePicker::make('submission_date')
                    ->hidden()
                    ->default(now())
                    ->dehydrated(),
Solution
https://filamentphp.com/docs/3.x/forms/fields/hidden
Hidden - Form Builder - Filament
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

How can I hide a field inside a form or repeater, but still send its data
FilamentFFilament / ❓┊help
17mo ago
how to hide a form field conditionally?
FilamentFFilament / ❓┊help
3y ago
show/hide field depending on data load?
FilamentFFilament / ❓┊help
3y ago
Can you hide the default menu but still discover the resources?
FilamentFFilament / ❓┊help
3y ago