DHTMLX Docs & Samples Explorer

setValidation(name, value, rule)

adds a validation rule to the input with the specified name

Parameters:

  • name - the id of item (the item's parameter 'name')
  • value - the value of a radio button ( the radio's parameter 'value'). Required for 'radio' items only
  • rule - a validation rule
myForm.setValidation('age', 'ValidInteger');