Skip to content

[Form] Ability to clear form errors #5152

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

Closed
wants to merge 3 commits into from
Closed

[Form] Ability to clear form errors #5152

wants to merge 3 commits into from

Conversation

colinodell
Copy link
Contributor

Q A
Doc fix? no
New docs? yes (symfony/symfony#14233)
Applies to 3.0 (master)
Fixed tickets


Any errors can be manually cleared using the :method:`Symfony\\Component\\Form\\FormInterface::clearErrors`
method. This is useful when you'd like to validate the form without showing validation errors to the user
(i.e. during a partial AJAX submission or :ref:`dynamic form modification <cookbook-form-dynamic-form-modification>`).
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could anyone please provide some guidance on how I'd link to this cookbook article? Apparently I've done it incorrectly :-/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you want to do the following:

:doc:`dynamic form modification </cookbook/form/dynamic_form_modification>`

@colinodell
Copy link
Contributor Author

Thanks for the help @xabbuh! I've corrected the link and the tests now pass.

@wouterj
Copy link
Member

wouterj commented Jun 27, 2015

Closing as upstream PR was rejected

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

Successfully merging this pull request may close these issues.

3 participants