Task #101794
closed
Use requestSubmit() in FormEngine
Added by Andreas Kienast about 1 year ago.
Updated 10 months ago.
Description
FormEngine should use requestSubmit()
rather than submit()
to allow event handling and further refactorings.
- Status changed from In Progress to Under Review
A little more background:
The obvious question is: Why does this method exist, when we've had the submit() method since the dawn of time?
The answer is simple. submit() submits the form, but that's all it does. requestSubmit(), on the other hand, acts as if a submit button were clicked. The form's content is validated, and the form is submitted only if validation succeeds. Once the form has been submitted, the submit event is sent back to the form object.
Source: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit#usage_notes
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF