Skip to content

Commit 89b6486

Browse files
committed
On Input Change
1 parent 681577c commit 89b6486

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

website/docs/packages/reference/ui-module.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,22 @@ SELECT * FROM addresses WHERE country = {{inputs.inputCountry}}
6666

6767

6868

69+
</dd>
70+
71+
#### On Input Change
72+
73+
<dd>
74+
75+
76+
Each Input supports an optional **onChange** configuration that defines what happens when the Input’s value changes during application usage. When you create an Input, a corresponding Input event is also created automatically. You can configure this event to:
77+
78+
- Run one or more queries.
79+
- Call a JavaScript function.
80+
- Chain multiple actions.
81+
82+
All actions defined in this event will run simultaneously when the input value changes from the app side. With this configuration, you do not need to set up separate buttons or widget events to trigger a query every time an input changes—Appsmith will automatically run the defined logic as part of the input’s change lifecycle.
83+
84+
6985
</dd>
7086

7187
#### Outputs

0 commit comments

Comments
 (0)