F
Filament4w ago
Mike

`validationMessages` not working via `validateOnly`

I have a form that uses validationMessages to customise validation messages returned to the user. These messages only appear to work when the form is validated via getState, never through validateOnly. I am using the updated hook, and the same issue happens when I use afterStateUpdated on components. Has anyone else bumped into this and is there a way to revolve it? Should I open an issue?
No description
3 Replies
Mike
MikeOP4w ago
These validation messages are ignored until the form is validated as a whole.
No description
Mike
MikeOP4w ago
Oh and this is just on a straight form implementing HasForms, not in a Panel.
Mike
MikeOP4w ago
I'm viewing this as a bug and so have opened an issue. https://github.com/filamentphp/filament/issues/15555
GitHub
validationMessages not being used when using validateOnly · Iss...
Package filament/forms Package Version v3.2.137 Laravel Version v11.41.3 Livewire Version v3.5.12 PHP Version PHP 8.4.1 Problem description I have a basic component that interacts with forms. In it...

Did you find this page helpful?