Global variables in Twidget are key-value pairs that can be used anywhere across events, endpoints, and functions. They provide a powerful way to manage and share data throughout your projects.
-
Data Types: Global variables support text, number, boolean, and date data types.
Security: Text values of the global variables are encrypted and hidden by default for added security.
Accessibility: Accessible anywhere in your no-code builder using the $global
prefix.
Read Only: Global variables are immutable, meaning their values cannot be modified.
Open Global Variables Sidebar:
Global Variables
button located at the top of the builder interface.Add a New Global Variable:
In the sidebar that opens, click the Add
button.
Provide a key and a value for the new variable.
Select the appropriate data type (text, number, boolean, or date).
Edit an Existing Global Variable:
Find the variable you wish to edit in the list.
Update the key, value, or data type as necessary.
Delete a Global Variable:
Locate the variable you wish to remove.
Click the Delete
icon next to the variable.
To refer to a global variable in the builder, use the prefix $global
followed by the variable's key. For example:
$global.variableName
This simple syntax ensures that your global variables are easily recognizable and consistently used throughout your projects.
Commands in Twidget
Commands are the building blocks of Twidget's no-code platform. They function like code statements and can perform various operations such as creating and updating variables, loops, conditionals, retrieving and manipulating data in the datastore, and much more. Creating a Command. 1. Navigate to the...
Functions
In Twidget, you can build custom reusable functions. These functions can be utilized across various sections including endpoints, events, and other functions. Instead of creating the same commands repeatedly, you can create a function once and reuse it wherever necessary, making your workflow more e...
Variables
Variables are essential building blocks in Twidget that allow you to store and manipulate data dynamically within your no-code applications. They enable you to create flexible and interactive applications by holding values that can be changed and referenced throughout your workflow. Creating Variabl...
Changes
In Twidget, every modification you make in our no-code builder is meticulously documented and stored as a change. Whether you are creating an input or editing a command, each action is captured in the platform. Important: Please note changes will not go live until they are published. Viewing Changes...
Data Types
Twidget supports six main data types to facilitate interactions within the platform. These data types are essential for defining inputs, outputs, and table fields, helping users understand the nature of the data being handled. The available data types in Twidget are as follows: Text. - Description: ...