Variable Editor
Reference documentation for Variable editor
Overview
The Variable Editor is used to add or edit a variable in a scope or a form's scripting file.

Sections
Name and Type selection
Name : Enter the name for your variable in the
Namefield. Choose a name that is descriptive of the data it will hold.Type : Select the type of the variable from the "Type" dropdown. The options available in the screenshot include:
TEXT: for string values.
INTEGER: for whole numbers.
NUMBER: for numerical values, which can include decimals.
DATETIME: for date and time values.
MEDIA: for media objects, such as images or files. Choose the type that best fits the kind of data you intend to store in the variable.
Default value
Default value : Specify the initial value for the variable.
You can choose between:
js expression: Write a JavaScript expression that evaluates to the initial value of the variable.
value: Manually enter a literal value.
Buttons
OK : Click this button to create the variable with the specified name, type, and default value.
Cancel : Click this button to close the dialog without creating the variable.
Example
If you want to create a variable to hold a string representing a user's name with an initial value of John Doe, you would:
Enter
userNamein theNamefield.Select
TEXTfrom theTypedropdown.Choose value and enter
John Doeas the default value.Click
OKto create the variable.
Last updated
Was this helpful?