DHTMLX Docs & Samples Explorer

Index
dhtmlxForm
Control Types & Attributes

# XML configuration

    <?xml version="1.0"?>
    <items>
    	<item type="radio" name="select" value="online" label="Will enjoy the online demo"/>
    	<item type="radio" name="select" value="disk" label="Please send me disk" checked="true">
    	<item type="checkbox" name="bootleg" label="Insert bootleg" checked="true"/>
    		<item type="checkbox" name="lyrics" label="Lyrics if possible" checked="true"/>
    		<item type="label" label="Payment"/>
    		<item type="radio" name="paymenttype" value="creditcard" label="Credit Card">
    			<item type="input" name="cardnumber" value="XXXX-XXXX-XXXX-XXXX" label="Card Number"/>
    			<item type="input" name="cardkey" value="XXXX" label="Key"/>
    		</item>
    		<item type="radio" name="paymenttype" value="cash" label="Cash" checked="1"/>
    		<item type="label" label="Currency"/>
    		<item type="radio" name="currencytype" value="dollar" label="U. S. Dollars" checked="1"/>
    		<item type="radio" name="currencytype" value="euro" label="Euro"/>
    		<item type="radio" name="currencytype" value="rub" label="Russian Rubel"/>
    	<item type="select" name="mediatype" label="Select Media Type">
    			<option value="1" text="CD 700Mb">
    				<item type="checkbox" name="overburn" value="yes_1" checked="true" label="Overburn"/>
    			</option>
    			<option value="2" text="DVD5 4.4Gb">
    				<item type="checkbox" name="lightscribe" value="yes" checked="true" label="Light Scribe"/>
    				<item type="checkbox" name="labelflash" value="yes" label="Label Flash">
    					<item type="radio" name="labelflash_radio" value="required" checked="true" label="Required"/>
    					<item type="radio" name="labelflash_radio" value="not_mandatory" label="Not bad option"/>
    				</item>
    			</option>
    		<option value="3" text="DVD9 8.6Gb" selected="1"/>
    			<option value="4" text="Blue-Ray 24Gb"/>
    		</item>
    		<item type="select" name="audioquality" label="Select Audio Quality">
    			<option value="1">2.0 16bit/128kbps</option>
    			<option value="2">2.1 16bit/334kbps</option>
    			<option value="3" selected="1">5.1 32bit/448kbps</option>
    		</item>
    		<item type="select" name="videoquality" label="Select Video Quality">
    			<option value="1" text="DVD MPEG-2" selected="1"/>
    			<option value="2" text="DivX"/>
    			<option value="3" text="XviD"/>
    		</item>
    		<item type="input" label="Comments" value="Some Comments" rows="3"/>
    	</item>
    	<item type="hidden" name="hiden_data" value="some_value"/>
    	<item type="file" name="my_file" label="Schoose file"/>
    	<item type="button" value="Submit"/>
    </items>

Each item can have 'bind' property to define binding or 'validate' property to define validation rules.
Items of 'select' controls can have 'connector' property to load options.