App scripting and events
Use JavaScript almost anywhere, control behavior, and respond to user actions with Retool apps.
You can write JavaScript in Retool apps to transform data, control behavior, and configure component properties. You can also configure event handlers that perform actions based on user interactions, such as a button click—without needing to write any code.
Get started
Learn how to add an event handler to apps, then start implementing your own to handle to user interactions.
Explore popular scripting and event documentation
JavaScript
Write JavaScript to control apps and handle user interactions.
Define option lists
Automatically map data to generate component values.
Handle user events
Trigger actions and queries in response to user interaction.
Custom JavaScript
Preload custom JavaScript code and libraries.