Global functions in Appsmith enable you to trigger various actions for widget events and within JS Objects. These functions allow you to navigate to other pages, display alert messages, open or close modals, and manage data in local storage, among other capabilities.
Browse this section to learn about the different actions you can trigger on Appsmith.
{/* clearInterval Function Card */}
Clears a previously set interval, stopping the specified repeated action.
{/* clearStore Function Card */}
Clears all stored values, effectively resetting the local storage state.
{/* closeModal Function Card */}
Closes an open Modal widget.
{/* copyToClipboard Function Card */}
Copies the given text to the clipboard, making it available for pasting.
{/* download Function Card */}
Downloads the file data provided, with an optional file name and type.
{/* navigateTo Function Card */}
Navigates to a different page or URL, either within the Appsmith app or externally.
{/* postWindowMessage Function Card */}
Posts a message to another window, facilitating communication between multiple windows.
{/* removeValue Function Card */}
Removes a stored value, clearing it from local storage or session storage.
{/* resetWidget Function Card */}
Resets a widget to its default state, clearing any set values or changes.
{/* setInterval Function Card */}
Sets a recurring interval, executing a function repeatedly at the specified time intervals.
{/* showAlert Function Card */}
Shows an alert message, displaying a brief notification to the user.
{/* showModal Function Card */}
Displays a modal dialog with content, allowing users to interact with additional information.
{/* storeValue Function Card */}
Stores a value locally, allowing you to use it in other parts of your app or across sessions.
{/* unlistenWindowMessage Function Card */}
Removes a message listener from another window, stopping the reception of posted messages.
{/* windowMessageListener Function Card */}
Listens for messages posted from another window, allowing communication across windows.