Constructordijit.form._FormMixin

dojo.require("dijit.form.Form");
defined in dijit/form/Form.js

Widget corresponding to HTML form tag, for validation and serialization

Usage

function ()

Examples

Example 1


    Name:
myObj = {name: "John Doe"};
dijit.byId('myForm').setValues(myObj);

myObj=dijit.byId('myForm').getValues();

FunctionsBack to top

generate JSON structure from form values
make sure that every widget that has a validator function returns true
fill in form values from a JSON structure
returns if the form is valid - same as isValid - but provides a few additional (ui-specific) features. 1 - it will highlight any sub-widgets that are not valid 2 - it will call focus() on the first invalid sub-widget