question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: field.isValidated & form.isSubmitted

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
foxhound87commented, Nov 19, 2017

I think you should use the action like:

  @action setIsSubmitted() {
    this.isSubmitted = true;
  }

or

  setIsSubmitted = action(() => {
    this.isSubmitted = true;
  });

but I think you can achieve that using the built-in packages’s options.

0reactions
foxhound87commented, Feb 19, 2019

The submitted & validated counters has been implemented.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found