setValidation

adds a validation rule to the input with the specified name

void setValidation(string name,string value,string rule);

Parameters

namestringthe name of an item
valuestringthe value of a radio button
rulestringa validation rule (possible validation rules are described in the related article)

Example

myForm.setValidation(name, "ValidInteger");

See also
  • Articles
  • Back to top