© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
26 replies
jals65

Remove value when form field is hidden

I have some dependent fields on my form, when for example a checkbox is selected, other field is hidden. The problem is when the field is hidden, it maintains its value.
Solution
In the end I solved it by setting manual default values. If it is boolean, it is set to false, if it is string it is set to empty string "", etc.
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

Setting data field value on hidden field when submitting form.
FilamentFFilament / ❓┊help
12mo ago
Get hiddenOn field value when mutate
FilamentFFilament / ❓┊help
3y ago
default value when hidden()
FilamentFFilament / ❓┊help
2y ago
Set initial value for hidden field
FilamentFFilament / ❓┊help
3y ago