Disable Validation for other locales
Hello everyone,
We have been looking for a while now....
Context
- Several Resources, Translatable (Using Filament plugins, json columns and Spatie translatable)
- Our other locales are 'optional'
Issue
The first time a field is filled (edit record), the validation triggers on the forms for the other locales.
Question
Is there a way to ignore any validation on the forms of the 'non' active locale. Or , to somehow (before validation) Fill the other forms's data with the default locale ones if they are empty ?
Extra
During my debugging I also found a qwerk in:
1 Reply
Solved by setting all empty data to the english data for every Locale in the beforeValidate hook, just seems a nuke for this tough (wish I could ignore validation on specific forms)