---
title: "on change · RUAL Documentation"
description: "Triggers given callback when the state key changes in the UI. This can be used to see button clicks or inputs being changed."
canonical: https://docs.rual.nl/block-types/state%20triggers/state_on_state_change
language: en
---

# on change

This block is part of the group and was last modified in core [`v13.0.6`](https://docs.rual.nl/core-versions/130006).

Triggers given callback when the state key changes in the UI. This can be used to see button clicks or inputs being changed.

- state key required `value`

- callback required `inpinfunction`

- state `state` Returns the element to the frontend state.

A typical wiring for [on change](https://docs.rual.nl/block-types/state%2520triggers/state_on_state_change): [value](https://docs.rual.nl/block-types/value/value_default) feeds the `state` pin; the `state` out pin feeds [get component child](https://docs.rual.nl/block-types/state%2520actions/state_component_get_child).

![Studio canvas example for the on change block: typical wiring for on change.](https://docs.rual.nl/canvas-examples/state_on_state_change.png)

### Version history

Introduced in [`v13.0.1`](https://docs.rual.nl/core-versions/130001).

Last modified in [`v13.0.6`](https://docs.rual.nl/core-versions/130006).

- [Back to](https://docs.rual.nl/block-types/): Return to the main group to view all sub-groups

- [Back to `state triggers`](https://docs.rual.nl/block-types/?group=state%20triggers): Return to the group to view all blocks within this group
