DHTMLX Docs & Samples Explorer

### With constructed form

Source

    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxform_dhx_skyblue.css">
    <script src="../../codebase/dhtmlxcommon.js"></script>
    <script src="../../codebase/dhtmlxform.js"></script>

    <form action="" method="get" accept-charset="utf-8" id="my_form">
        <input type="button" command="validate" value="Validate">
    </form>
    <script>var dhxList;
    function doOnLoad() {
        formData = [{
            type: "input",
            name: "field_a",
            label: "User name",
            validate: "NotEmpty"
        }, {
            type: "input",
            name: "field_b",
            label: "Email",
            validate: "ValidEmail"
        }];
        new dhtmlXForm("my_form", formData);
    }</script>