How to disable browser validation in Filament forms?
I have a 'required()' rule for all the input fields. However, the first input field always will be validated by the browser, not server-side. The input fields after are correctly validated.
8 Replies
->rules(['required'])
?Thanks, but still the same problem.
Did you remove ->required() ?
Ah no, I forgot. Now it works as expected. Thanks! 🙂
Nice, it works but it hide the required input star. Do you know how to show it?
->markAsRequired(true)
?I tried but that does not work. Maybe some bug in FIlament. (btw. true is default value)
I am looking for the same answer. It looks like
->markAsRequired()
modifies ->required()
or does not recognize that 'required'
exists when in a ->rules()
method.
Probably the latter.