requireWithoutAll not working

I have a fieldset with 3 inputs. I have the same setup in several livewire components and it works but for some reason in my new Filament form, it doesn't. If data is entered into one the other 2 fields throw a validation error.
Forms\Components\Fieldset::make('Contact Information')
->schema([
Forms\Components\TextInput::make('email')
->requiredWithoutAll('line', 'whatsapp')
->email(),
Forms\Components\TextInput::make('line')
->requiredWithoutAll('email', 'whatsapp'),
Forms\Components\TextInput::make('whatsapp')
->requiredWithoutAll('email', 'line'),
])
->columns(3),
Forms\Components\Fieldset::make('Contact Information')
->schema([
Forms\Components\TextInput::make('email')
->requiredWithoutAll('line', 'whatsapp')
->email(),
Forms\Components\TextInput::make('line')
->requiredWithoutAll('email', 'whatsapp'),
Forms\Components\TextInput::make('whatsapp')
->requiredWithoutAll('email', 'line'),
])
->columns(3),
1 Reply
bardolf_6969
bardolf_6969OP2w ago
The same pattern in Livewire works perfectly
'email' => 'nullable|email|required_without_all:line,whatsapp',
'whatsapp' => 'nullable|string|required_without_all:email,line',
'line'=> 'nullable|string|required_without_all:email,whatsapp',
'email' => 'nullable|email|required_without_all:line,whatsapp',
'whatsapp' => 'nullable|string|required_without_all:email,line',
'line'=> 'nullable|string|required_without_all:email,whatsapp',

Did you find this page helpful?