Request submit instead of submitting a form
HTMLFormElement.requestSubmit() in a nutshell. 👇— Stefan Judis (@stefanjudis) February 14, 2020
Video alt: Form that is not submitting on button click due to failing validations. `submit()` ignores errors and submits – `requestSubmit()` validates first. pic.twitter.com/tJTWt5xEXS
form.requestSumit() is sometimes useful (I don't use
form.submit() that often) to let the built-in browser validation kick in before sending off the form to the server.