© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
Scott

Do hidden fields get processed?

Hi guys - I have a "user_id" field in a form. I want this value to be set to the current user, and the field should be hidden from view. Only admins should be able to see and edit this field.

If I hide the field from non-admins, will the default still be set (it's a required field)?

Forms\Components\Select::make('user_id')
->relationship('user', 'name')
->searchable()
->preload()
->placeholder('Select user')
->required(),
Solution
no, but you can customize this process
https://filamentphp.com/docs/2.x/admin/resources/creating-records#customizing-data-before-saving
Filament
Creating records - Resources - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
Creating records - Resources - Admin Panel - 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
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