brixxbox Wiki
Ask or search…
K

setValidatorValue

Updating a validator with a new target value

Parameters

  1. 1.
    controlId - Id of the control from which a validator is to be changed
  2. 2.
    validatorType - Type of the validator (e.g. vat, greaterThen, lessThen ...)
  3. 3.
    value - The new value
  4. 4.
    value2 - (optional) If the validator has two values, e.g. min and max, the second value can be passed here

Example

app.setValidatorValue('numValTest', 'greaterThan', 200);