# Value triggers

Value triggers will make things happen when a field changes. Multiple triggers can be assigned to the same field.

- **setValueOnChange(sourceName,targetName,targetValue)**
- **setValueOnSetValue(sourceName,sourceValue,targetName,targetValue)**

Sets the value if another field is changed. Optionally only if a ceratain value is selected (sourceValue)

```javascript
setValueOnChange("CATEGORY","Silver","StatusID","Customer changed")
```

- **warningOnChange(sourceName,message)**
- **warningOnSetValue(sourceName,sourceValue,message)**

Display a warning to a user if another field is changed. Optionally only if a ceratain value is selected (sourceValue)