> For the complete documentation index, see [llms.txt](https://brixxbox.gitbook.io/brixxbox-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/setvalidatorvalue.md).

# setValidatorValue

Updating a validator with a new target value

### Parameters

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

### Example

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