© 2026 Hedgehog Software, LLC

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

How to modify fields when submitting form

I have created a resource. Inside of it, in the form, I have a toggle field which i use to hide or show some fields. but i just use it for that.

the problem comes when i try to submit the create form. i get
Column not found: 1054 Unknown column 'has_users' in 'field list'
Column not found: 1054 Unknown column 'has_users' in 'field list'


i dont want this field to be included in the model creation, is there a way to exclude it or something?

Forms\Components\Toggle::make('has_users')
// ->excludeFromSaving() or something like that exists???
Forms\Components\Toggle::make('has_users')
// ->excludeFromSaving() or something like that exists???
Solution
Take a look at https://filamentphp.com/docs/3.x/forms/advanced#preventing-a-field-from-being-dehydrated
Advanced forms - 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

Form not submitting when using CKEditor
FilamentFFilament / ❓┊help
2y ago
UPDATE query error when submitting form
FilamentFFilament / ❓┊help
3y ago
No data saved when submitting a form...
FilamentFFilament / ❓┊help
2mo ago
How to modify the Modal Form position
FilamentFFilament / ❓┊help
5mo ago