Check documentation for the latest version of dhtmlxSuite setRequired DHTMLX Docs

setRequired

makes/unmakes a certain field required

void setRequired(string name,string|number value,boolean state);
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