Form validation
On registration or login screen (or when using "Filamament Form Builder" standalone on for frontend forms - outside of "Filament Admin Panel") error validation seems to be done by browser itself and not error styling is applied. How can this be changed?
15 Replies
I've noticed that because in case of a required
DatePicker
I don't get any error notification/highlighting/styling when trying to submit without an value entered.For my frontend I've done the installation like described here: https://filamentphp.com/docs/2.x/forms/installation
Filament
Installation - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
any console error?
no
it‘s just the browser validating the
required
- no css error classes get appliedCan you share the code please?
js? php?
php
If you remove ->required() and add ->rule('required'), what happens when you submit the form?
when making the suggested change the field isn't required any more
i share the same fields within the admin panel to have same logic when i want to collect i.e. personal data like "first_name"
in backend:
in frontend:
solved 🙏
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Open a new topic, just use Required with closure