StableEvent
On change
Overview
Fires when the value of an input or the selection of a component changes.
Purpose
React immediately to user input: filter a table as a dropdown changes, store a value in state, recalculate a total, or react to a card being moved on a Kanban board.
Inputs
- Supported by: every form input (Text Input, Text Area, Number, Currency, Email, Phone, Password, URL, Search, Date, Time, Date & Time, Date Range, Dropdown, Multi Select, Radio, Checkbox, Toggle, Slider, Rating Input, Address, Location, Signature, Color Picker, File Upload, Image Upload, Camera, Barcode Scanner, QR Scanner, Autocomplete, Hidden Field), Chips, Tabs, Stepper, Data Grid (inline edits), Kanban (card moved), Status Tracker.
Configuration
- For inputs inside a Form, the form already keeps the value; use On change only for side effects such as filtering or showing extra fields.
Outputs
- Inputs and Chips:
Event › value— the new value. - Tabs and Stepper:
Event › value— the new active index (0-based). - Data Grid:
Event › id,Event › fieldandEvent › valueof the edited cell, with Current record set to the row. - Kanban:
Event › id,Event › value(new column),Event › from(previous column) andEvent › record.
Example
Live filter
Example
Search input › On change: 1. Set state Page state › q = Event › value Table search: Page state › q
Errors
- None specific. Data Grid saves the edit before firing; a failed save shows an error and does not fire the event.
Limitations
- Fires on every keystroke for text inputs — avoid server actions here; bind the table's search to state instead.