Whenever a field in the configuration of an element requires a reference to a variable, that field will be a display-only text field containing the current name of the variable, with a Variable Manager icon next to it.
The Variable Manager is your window into the variables defined in the dataStore. It allows you to create, rename, or delete variables, as well as to select them and return the choice back to a dialog field. You can create:
● Simple variables
These can be variables in any of the available data types.
● Structures
These are multi-field variables with a single row.
● Tables
These are multi-field variables with multiple rows.
Visual Composer has a typed variable space, which includes the simple types:
● Boolean
● Date
● Number
● String
● Time
Open the Variable Manager by clicking the Variable Manager icon next to variable text field.
● To create a new variable, click Add (+).
A list appears allowing you to select the type of the variable. Variables are displayed with a default name, which you can change by entering a new name.
If you are creating a complex variable, such as a table or structure, you first create and name the table or structure. Then you select it and click Add (+) to add each of the fields it should contain.
● To select a variable and return it to a dialog, either double click it or single-click it and then click Select.
● To rename a variable, click abc and retype the name.