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
I'd like to render multiple forms on a page, form A and form B. They both have a field named 'somefield' field, that has some validation rules. When I submit form A and validation failed, the error is shown in both form A and B. Of course, I only want this error to be displayed in form A.
I read about the option of named forms, http://kristijanhusak.github.io/laravel-form-builder/form/named-form.html, I guess that is meant exactly for my usecase. However, when I set a name on a form, either by passing 'name' as option or by setting the property $name in de form class, I don't see errors at all when validation fails.
Questions:
Is using named forms the way to go for my use case?
If so: how should I get it working?
The text was updated successfully, but these errors were encountered:
Errors come from response are just flat array. No mentions about form name :(
But actually 'Validator' knows form name. Not sure if Laravel is able work with named forms correctly.
I'd like to render multiple forms on a page, form A and form B. They both have a field named 'somefield' field, that has some validation rules. When I submit form A and validation failed, the error is shown in both form A and B. Of course, I only want this error to be displayed in form A.
I read about the option of named forms, http://kristijanhusak.github.io/laravel-form-builder/form/named-form.html, I guess that is meant exactly for my usecase. However, when I set a name on a form, either by passing 'name' as option or by setting the property $name in de form class, I don't see errors at all when validation fails.
Questions:
The text was updated successfully, but these errors were encountered: