© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Altffenser

Conditionally create non-editable fields

There are a function that create a "TextInput" no editable for the user? I would like to send "generated" data based on others fields, then, put it at non editable field like *username * based on real user name.

Disabled fields cannot be sent due to their own disabled status.

How can I achieve this function?
Solution
See use of dehydrated() in the docs on disabling. A field which is ->disabled()->dehdrated() will be submitted with the form.

If you are worried about people spoofing it, you can always re-create the value from your other fields on save with a dehydrateStateUsing() method.

https://filamentphp.com/docs/3.x/forms/fields/getting-started#disabling-a-field
Getting started - 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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Conditionally disabling form fields
FilamentFFilament / ❓┊help
3y ago
Create & create another - reuse fields
FilamentFFilament / ❓┊help
3y ago
Spatie Translatable non translated fields
FilamentFFilament / ❓┊help
13mo ago
Translatable not working for non translatable fields.
FilamentFFilament / ❓┊help
3y ago