F
Filament9mo ago
Igor

conditional configureusing

I am using configureUsing function to set up all my text inputs to uppercase. However, this causes an issue with the reset password feature, as the email field also becomes uppercase and the database is unable to find any email due to the case sensitivity. Is it possible to set all inputs to uppercase except for the email field?
Solution:
check it in the configureUsing ```php ->configureUsing(function (TextInput $input) { if (! $input->isEmail()) {...
Jump to solution
2 Replies
Solution
LeandroFerreira
LeandroFerreira9mo ago
check it in the configureUsing
->configureUsing(function (TextInput $input) {
if (! $input->isEmail()) {
//...
}
})
->configureUsing(function (TextInput $input) {
if (! $input->isEmail()) {
//...
}
})
Igor
IgorOP9mo ago
Thank you leandro. This makes sense, but it doesn't work as expected because the reset password view only has a regular text input.
protected function getEmailFormComponent(): Component { return TextInput::make('email') ->label(__('filament-panels::pages/auth/password-reset/reset-password.form.email.label')) ->disabled() ->autofocus(); }
but I can use the name of input, witch solve
Want results from more Discord servers?
Add your server