Check documentation for the latest version 6.0 of dhtmlxSuite setRequired DHTMLX Docs

setRequired

makes/unmakes a certain field required

void setRequired(string name,string|number value,boolean state);

Parameters

namestringthe name of an item
valuestring|numberitem value (for radio buttons)
statebooleanto make the field required, set the parameter to "true". Otherwise, false

Example

myForm.setRequired(name,true);

Back to top