FilamentF
Filament2y ago
John

Why are disabled() fields validated? (e.g. required())

I'm building a workflow app with multiple forms. Sometimes a user can send back to the previous step.

In that case, I only want the user to fill in a reason text field, and use a custom form action to send it back. Not bothering with validation of the rest of the form.

That all works fine, except for the validation part. I reckoned that if I disabled() the fields, they would skip validation. I believe that's how standard HTML forms work. But that doesn't seem the case in Filament.

Can I skip validation in some other way?
Was this page helpful?