Repopulate form with error bag #47707
Unanswered
shalahuddinalayubi
asked this question in
Ideas
Replies: 1 comment
-
if you have same name field. form will get last one for send to server. sugestion |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am struggling with repopulate form with multiple form in single page.
I have multiple form in a single page. Each of them has its own error bag name.
Both has field named baz.
This for foo form:
<input type="text" name="baz" class="form-control" value="{{ old('name', $foo->name) }}">
This for bar form:
<input type="text" name="baz" class="form-control" value="{{ old('name', $bar->name) }}">
When the error validation occur in one of the field the both old value will be the same.
How can I differentiate for foo and bar to repopulate form with the same field named baz?
Beta Was this translation helpful? Give feedback.
All reactions