how to change input text value before unique validation?
before do unique validation i want to standardise the text input value like lowercase it.etc. How do i do so before apply unique validation? in a filament text input?
Something like this if it is a normal form request
Then apply unique validation later
9 Replies
im using filament forms outside panel
masking is javascript, would prefer a server side hook to do the changes to the value before the field validation
Then create your own logic, like
updatedTitle()
ref https://livewire.laravel.com/docs/lifecycle-hooksLaravel
Lifecycle Hooks | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
i don't want to do it on every update, but when user press submit and just before the validation run for mobile_phone
No idea then, sorry
instead of doing it
live()
do it live(onBlur: true
then it will be triggered after focus removed