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
Hello, really good work with this package, it is simple and effective.
I am only having problems with the "required_without" and "required_without_all" rules in my application.
I have a field 'email' which should be required if none of fields 'phone1', 'phone2' and 'phone3' are present (required_without_all), and field 'phone1' should be required if 'email' is not present (required_without).
When all fields are empty it works as expected, validation fails giving a message that field is required when the other is not present. The problem is when I fill in any of the fields, validation still fails (e.g. phone1 is present and email is empty, but validation fails saying "phone1 is required when email is not present"), even if all fields are filled correctly the validator will keep failing saying a field is required when the other is empty when both fields are filled.
I have tested my code without jsvalidation and the Laravel validation works as expected, only when I add JS validation I get this error.
Hello, really good work with this package, it is simple and effective.
I am only having problems with the "required_without" and "required_without_all" rules in my application.
I have a field 'email' which should be required if none of fields 'phone1', 'phone2' and 'phone3' are present (required_without_all), and field 'phone1' should be required if 'email' is not present (required_without).
When all fields are empty it works as expected, validation fails giving a message that field is required when the other is not present. The problem is when I fill in any of the fields, validation still fails (e.g. phone1 is present and email is empty, but validation fails saying "phone1 is required when email is not present"), even if all fields are filled correctly the validator will keep failing saying a field is required when the other is empty when both fields are filled.
I have tested my code without jsvalidation and the Laravel validation works as expected, only when I add JS validation I get this error.
The generated HTML for the page is here: http://pastebin.com/rapW1yva
I am still a newbie in this, so I hope this is a valid issue, if it is not, excuse me.
Regards,
Lorenzo
The text was updated successfully, but these errors were encountered: