Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#413 Multiple form in one page (More errorBag) #414

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

Fellner96
Copy link
Contributor

No description provided.

@kristijanhusak
Copy link
Owner

Thanks.

@kristijanhusak kristijanhusak merged commit 0479603 into kristijanhusak:master Feb 27, 2018
@HoffmannAndras
Copy link

👏

@hectnandez
Copy link

hectnandez commented Jul 12, 2019

Hi,

In my application I have a several forms, but when I get the errors validation in one of them, an make a redirect back, the errors it's show it in all of them..

image

I just uptated to the version 1.6.50, but I'm still have this bug, do I miss something?

Another think it's the data it's replicate in all forms on the page.

Thanks for the help.

@rudiedirkx
Copy link
Collaborator

I think you have to explicitly name the error bag in every distinct form:

/**
 * Define the error bag name for the form.
 *
 * @var string
 */
protected $errorBag = 'default';

Only for forms that are on pages with other forms.

I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants