Is there any method for disabled browser/client validation?

Hey, I wonder is there any method for disabling browser/client validation for globally?
2 Replies
Ava
Ava4w ago
Hey @Azad Furkan ŞAKAR - If you’re looking to disable browser/client-side validation, you could add the novalidate attribute to all Filament forms. If you already have a service provider, like App\Providers\AppServiceProvider, you could modify it instead of creating a new one.
namespace App\Providers;

use Filament\Forms\Form;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
public function boot(): void
{
Form::configureUsing(function (Form $form) {
$form->attributes(['novalidate' => true]);
});
}
}
namespace App\Providers;

use Filament\Forms\Form;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
public function boot(): void
{
Form::configureUsing(function (Form $form) {
$form->attributes(['novalidate' => true]);
});
}
}
Azad Furkan ŞAKAR
I tried that with ->extraAttributes and it doesn't work.

Did you find this page helpful?