Skip to main content

Set localStorage

The Set localStorage action stores a key/value pair in the browser's local storage. This is useful for saving form values so users don't lose them on reload, or storing data that shouldn't be persisted to the database.

Configuration

ParameterDescriptionDefault
KeyName (string) under which the value is stored
ValueThe value to store
DebounceTime in milliseconds to wait before executing the actionEmpty (no delay)
ToolJet - Action reference - Set Local Storage

Triggering via RunJS

actions.setLocalStorage('<key>', '<value>');
info

For a full quick-reference of all actions' RunJS syntax, see Run Actions from RunJS.