Skip to content

DefaultSubmit Plugin ​

Automatically submits the form when all fields pass validation — no manual submit handler needed.

Options ​

OptionTypeDefaultDescription
enabledbooleantrueEnable or disable the plugin

Playground ​

Fill in both fields and click Validate. When all fields are valid, the form submits automatically (intercepted here to show a confirmation message).

Notes ​

  • form.submit() is called directly — it bypasses the form's submit event. If you need to intercept submission (e.g., for AJAX), listen to core.form.valid instead and call your own handler.
  • Do not name any form control name="submit" — that shadows the native form.submit() method and will throw an error on install.
  • Pair with SubmitButton to disable the submit button during async validation and re-enable on completion.

Released under the MIT License.