© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
3 replies
Calden

validation.in on form submit

Hey ! I don’t understand why I’m getting this message 'validation.in' when I try to submit the form, and as a result the form doesn’t submit !

Select::make('matieres')
      ->label('Matière(s)')
      ->multiple()
      ->relationship('matieres', 'nom')
      ->options(Matiere::whereHas('sessions', function ($Query) {
          $Query->where('session_id', '=', Filament::getTenant()->id);
      })->get()->sortBy(function ($matiere) {
          return $matiere->nom;  // Sort by the accessor value
      })
          ->mapWithKeys(function ($matiere) {
              return [$matiere->id => $matiere->nom];  // Uses the getNomAttribute() accessor
          }))
      ->preload()
      ->live()
      -required()
Select::make('matieres')
      ->label('Matière(s)')
      ->multiple()
      ->relationship('matieres', 'nom')
      ->options(Matiere::whereHas('sessions', function ($Query) {
          $Query->where('session_id', '=', Filament::getTenant()->id);
      })->get()->sortBy(function ($matiere) {
          return $matiere->nom;  // Sort by the accessor value
      })
          ->mapWithKeys(function ($matiere) {
              return [$matiere->id => $matiere->nom];  // Uses the getNomAttribute() accessor
          }))
      ->preload()
      ->live()
      -required()


Its in my "Cours" resource with the "Cours" model with the relation :

public function matieres(): BelongsToMany
    {
        return $this->belongsToMany(Matiere::class);
    }
public function matieres(): BelongsToMany
    {
        return $this->belongsToMany(Matiere::class);
    }


It worked in v3, but in v4 I’m getting this message now.
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

collapse form section on submit
FilamentFFilament / ❓┊help
2y ago
mask removed on form submit
FilamentFFilament / ❓┊help
3y ago
disable submit button on form
FilamentFFilament / ❓┊help
3y ago