Issue
As an individual looking for information on the JS SDK, I am unable to locate documentation on specific functions such as resetWidget or closeModal.
Resolution
If you’ve been exploring Appsmith’s JavaScript editor, you might came across functions like resetWidget()
or closeModal()
.
These functions are part of Appsmith's Global Functions, a built-in toolkit that allows you to control widgets, modals, navigation, and other app behaviors with simple JavaScript.
You can find full documentation under our Global Functions reference guide:
🔗 Appsmith Global Functions Documentation
This includes functions such as:
resetWidget(widgetName)
closeModal(modalName)
showModal(modalName)
navigateTo(pageName)
- And many more...
Each function entry provides usage examples and parameter details to help you implement them quickly. Use them to:
- Reset forms after submission
- Show or hide modals on demand
- Navigate between pages programmatically
- Trigger toast messages and alerts
You can trigger these functions in response to various events—like button clicks, form submissions, or API success callbacks. They’re designed to simplify your logic and reduce redundant UI code.
Appsmith’s built-in JavaScript functions are powerful tools that let you build smarter, faster internal tools—without reinventing the wheel. Whether you're creating dashboards, admin panels, or custom workflows, these functions help you move from idea to execution with less friction.