Selection (Dropdown) list
Make your calculations interactive with selectable inputs.
You can turn any variable with a predefined list of options into a selection list from the variable settings panel.
A selection list allows users to choose from a set of options directly on the page. The selected value can then be used as an input in other parts of your calculation, making your page more interactive, user-friendly. and less prone to input errors.
1D Lists
Type '/' to launch the page command menu
Pick 'Selection'

This will immediately insert a Selection variable with some sample selection options

From the variable settings, adjust options in the formula:

Updated options will now render in the selection dropdown on the page.

Note that the formula for your variable will update to ctselect([array]), and cannot be edited when in list view. Switch back to a assignment to edit the values.
2D Lists (Label/ID Pairs)
You can also define dropdown options using a list of lists to separate user-facing labels from internal values.
Example Format:
List: '[[1, "One"], [2, "Two"], [3, "Three"]]',In this structure:
The second item in each inner list (e.g.
"One","Two","Three") is shown in the dropdown as the label.The first item (e.g.
1,2,3) is the value that gets returned when the user makes a selection — this is referred to as the id.
This setup is especially useful when you want user-friendly labels on the interface but use more technical or numeric values in your calculations.
Last updated