Variable Editor
Reference documentation for Variable editor
Last updated
Was this helpful?
Reference documentation for Variable editor
Last updated
Was this helpful?
The Variable Editor is used to add or edit a variable in a scope or a form's scripting file.
Name : Enter the name for your variable in the Name
field. 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 : 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.
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.
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 userName
in the Name
field.
Select TEXT
from the Type
dropdown.
Choose value and enter John Doe
as the default value.
Click OK
to create the variable.