Feature request: field.isValidated & form.isSubmitted
See original GitHub issueI’d love to see an isValidated
boolean on the field object, that gets flipped from false to true once the field has been validated for the first time.
I’d also like to have an isSubmitted
flag on the form object, that shows if the form has ever been submitted.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[FORM] isSubmitted() returns false when in fact, the ... - GitHub
This means that the request handler will not submit the form at all. ... a hidden input field as with the 'POST' method...
Read more >Display Symfony form errors, without any submit - JoliCode
In Symfony, form validation is done when the form is submitted thanks to the ValidationListener POST_SUBMIT handler.
Read more >Validation of AJAX submitted forms in Symfony 5
In this case, my form is processed for validation and It passes ( $form->isValid() returns true ) even if I don't provide some...
Read more >Handling the Form Submit > Symfony 4 Forms - SymfonyCasts
Because the form knows all of its fields, it grabs all of the submitted data from the $request automatically and isSubmitted() returns true...
Read more >How to Dynamically Modify Forms Using Form Events - Symfony
Example: you have a "Product" form and need to modify/add/remove a field based ... Now that you have all the basics in place...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think you should use the action like:
or
but I think you can achieve that using the built-in packages’s options.
The
submitted
&validated
counters has been implemented.