© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
Marian

validation

I'm getting to know laravel filament, and I have a problem when sending the form to create it with the "Create" button, the error messages don't appear only like the native browser,
but if I send "Create & create another" the error message are displayed.
I've been struggling with this for a while, do you have experience with it? I am trying also completely new instalation, but stil is the same
I would like the error messages to be displayed in the same way during create and edit. This is the same on all forms


public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('name')
->required()
->maxLength(255),
Forms\Components\TextInput::make('city')
->required()
->maxLength(255),
Forms\Components\TextInput::make('country')
->required()
->maxLength(255),
Forms\Components\TextInput::make('postal_code')
->required()
->maxLength(255),
]);
}


Thank you
Snimka_obrazovky_2024-07-02_o_13.46.23.png
Snimka_obrazovky_2024-07-02_o_13.46.05.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

validation
FilamentFFilament / ❓┊help
3y ago
Create validation after field validation
FilamentFFilament / ❓┊help
15mo ago
Import validation
FilamentFFilament / ❓┊help
12mo ago
Bypass validation
FilamentFFilament / ❓┊help
16mo ago