You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.
I have encountered this issue also. To resolve, I have added custom validation rules where I can verify if fr and en (and so on...) are not empty or else fail the validation.
My code is bellow, can be improve
Let's analyze it a bit:
Here $attribute is not very useful because the value is something like flexible_content.0.text
$value is type of array with fr and en as key with their respective values
if one of en or fr value are missing, send fail validation
As you see, you can add more locales validation but for me i just use 'fr' and 'en'
Say we have a field like:
In our application, we have two locales.
If I try to submit the form without entering a value for either locale, I get a validation error stating that the field is required.
However, if I enter a value for only one of the two locales, the submission goes through.
How can we require that all a value is present for all locales?
The text was updated successfully, but these errors were encountered: