The Retool Context object
Information about the current web app.
Properties
All properties for this object with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
Examples
"/path/to/app"
Examples
"12345678-1234-1234-1234-123456789012"
Examples
"page1"
Examples
"production"
inEditorMode
Whether the app is open in the App IDE.
Type | boolean |
Format | True/False |
Mutability | Read-only |
Examples
true
Array Object Properties
id
The unique identifier (name).
Type | string | ||||
Format | Plain Text | ||||
Mutability |
| ||||
Default |
|
Examples
query1
button1
title
The title of the page.
Type | string | ||||
Format | Plain Text | ||||
Mutability |
|
Examples
Page 1
url
The URL path of the page.
Type | string | ||||||
Format | URL | ||||||
Mutability |
|
Examples
page1
isCurrentPage
Whether the page is the current page.
Type | boolean |
Format | True/False |
Mutability | Read-only |
Examples
true
pageTag
The release version of the app. Defaults to latest
if using the working version.
Type | string |
Format | Plain Text |
Mutability | Read-only |
Examples
latest
v1.0.0
runningQueries
A list of queries running.
Type | array |
Format | Plain Text |
Array values | string |
Mutability | Read-only |
Default |
|
Examples
["query1", "query2"]