Form manager's mixin for form-specific functionality.
This mixin adds automated "onreset", and "onsubmit" event processing if we are based on a form node, defines onReset(), onSubmit(), reset(), submit(), and isValid() methods like dijit.form.Form. It should be used together with dojox.form.manager.Mixin.
See the dojox/form/manager/_FormMixin reference documentation for more information.
Make sure that every widget that has a validator function returns true.
Resets form widget values.
Resets form widget values.
programmatically submit form if and only if the onSubmit
returns true
validate() returns if the form is valid - same as isValid - but provides a few additional (ui-specific) features: it will highlight any sub-widgets that are not valid it will call focus() on the first invalid sub-widget
Callback when user resets the form. This method is intended
to be over-ridden. When the reset
method is called
programmatically, the return value from onReset
is used
to compute whether or not resetting should proceed
Callback when user submits the form. This method is
intended to be over-ridden, but by default it checks and
returns the validity of form elements. When the submit
method is called programmatically, the return value from
onSubmit
is used to compute whether or not submission
should proceed