Adding Image Selector Field on Forms
This article explains the Image Selector field for Input Forms in TagoIO, showing how users pick one or multiple images and how the selected value is stored. It also documents the widget options you configure for this field type.
The Image Selector field type allows you to present an input where the user can select one or more images that correspond to predefined values.
Example: Select the Device
Users need to click an image. The value you entered in the widget options will be stored in your data device.
Widget options
Common options for the Image Selector field:
- Type
- Label for variable
- Default value(s) comes from
- Use values from
- Is it a required field?
- Allow multiple selections
Notes:
- Configure the values that each image represents in the widget options; those exact values are what will be stored when a user selects an image.
- Use Values From:
- Dynamic: Provide a device variable that contains an array of objects. Each object should include
metadata.description,metadata.url(HTTPS), and optionallymetadata.value. The widget will use the object'svaluefield if present; otherwise it uses the variable’s value.