Pages
Input Select 2
Description
Input Select 2 is a dropdown control that allows users to choose exactly one value from a predefined list of options.
It is especially useful in scenarios where selections must be clear and constrained — such as choosing a mode, selecting a product type, or assigning a user role.
The dropdown is fully data-driven: options can be dynamically loaded from a JSON file and translated if needed.
Key Features
- Only one option selectable at a time
- Fully compatible with connection strings to send the selected value
- JSON-based data input for flexible configuration
- Ideal for INT or REAL variables — no structure needed
It is ideal for scenarios where users need to select a value from a set of choices. This control is highly flexible, as it can be populated with data from a JSON file, enabling dynamic, data-driven selections.
Data Source from JSON File
-
Supported datatypes for direct connection (no struct):
- Can be directly connected to simple types such as INT or REAL.
-
JSON Integration:
-
Two example files should be referenced in the documentation:
-
select2.json: basic version without translation
[
{"id": 1, "text": "{{My option 1}}"},
{"id": 2, "text": "{{My option 2}}"},
{"id": 3, "text": "{{My option 3}}"}
] -
select3.json: enhanced version with translation support
[
{"id": 1, "text": "{{My option 1}}"},
{"id": 2, "text": "{{My option 2}}"},
{"id": 3, "text": "{{My option 3}}"}
]
-
-
-
The JSON file defines the available options and populates the selector accordingly at runtime.