Actions reference

Browse the built-in actions in Nordcraft. Actions in Nordcraft are reusable JavaScript functions that allow you to extend the platform's functionality. Actions are available in workflows and event callbacks.

Tip

To learn more about actions, check out the actions overview.

Clear local storageView on GitHub

Delete all values in local storage.

Clear session storageView on GitHub

Delete all values in session storage.

Copy to clipboardView on GitHub

Copy contents to the clipboard.

Arguments

NameTypeDescription
ValueStringThe value you want to copy.

Delete from local storageView on GitHub

Delete a value from local storage (if found) based on the provided key.

Arguments

NameTypeDescription
KeyStringThe key in local storage to delete.

Delete from session storageView on GitHub

Delete a value from session storage (if found) based on the provided key.

Arguments

NameTypeDescription
KeyStringThe key in session storage to delete.

Move focus to a DOM element.

Arguments

NameTypeDescription
ElementElementThe DOM element that should receive focus.

Navigate to a specified URL.

Arguments

NameTypeDescription
URLStringThe URL to navigate to.

Run an action every "delay" milliseconds.

Arguments

NameTypeDescription
Interval in millisecondsNumberThe interval "delay".

Log to consoleView on GitHub

Log a message to the browser console.

Arguments

NameTypeDescription
LabelThis is textA label for the message.
DataAnyThe data you want to log to the console.

Prevent defaultView on GitHub

Prevent default browser behavior for this event.

Save to local storageView on GitHub

Save a provided key/value to local storage by JSON encoding the value.

Arguments

NameTypeDescription
KeyStringThe key to be used in local storage.
ValueAnyThe value that should be saved in local storage. This can be anything that is serializable (String, Number, Boolean, Array or Object).

Save to session storageView on GitHub

Save a provided key/value to session storage by JSON encoding the value.

Arguments

NameTypeDescription
KeyStringThe key to be used in session storage.
ValueAnyThe value that should be saved in session storage. This can be anything that is serializable (String, Number, Boolean, Array or Object).

Set session cookiesView on GitHub

Deprecated: Use Set HttpOnly cookie instead. Save authentication tokens as session cookies.

Arguments

NameTypeDescription
Access tokenStringAccess tokens are the most common way to authenticate with a server.
Expires inNumber(Optional) Time in seconds until the token expires. Defaults to 3600 (1 hour). This should be left blank for JWTs.

Sets the application theme. Call with null to reset. This action automatically sets a theme-cookie so the theme persists across sessions. Note: This action is currently only supported when the "style-variables-v2" feature flag is enabled.

Arguments

NameTypeDescription
NameStringThe name of the theme.

Share data with title, text, and/or URL using the Navigator.share API.

Arguments

NameTypeDescription
URLStringThe URL to share.
TitleStringThe title to share.
TextStringThe text to share.

Run an action after a delay.

Arguments

NameTypeDescription
Delay in millisecondsNumberThe number of milliseconds to wait before an action is executed.

Stop propagationView on GitHub

Stop the event from bubbling up the DOM to parent elements.

08/15/2025
Edit article
Help Forum