🚧Form (WIP)
Last updated
Last updated
The form is a versatile widget that allows the input of a wide range of data types and formats. [Expand intro]
Some types of field inputs have extra options such as an option list or a default value.
Each field can be set as required and show an error message when it’s empty.
The form widget has a set of unique properties when linked to a function.
The default option when connecting the form to an input, it reads the form data as specified in the options.
Returns the result of validation in this format:
The isValid
variable can be used, for example, to prevent the app user from submitting a form without having completed the required field.
Automatically fills a specified form field with a value passed to the function.
Some types of form fields have a list of values to select from. There are two ways to set the options, and one is using the set options
property. Drag an output onto the form and then select the “set options” property.
The call validate
property checks whether the information in the form is valid (required fields are filled, the inputs are in the correct formats etc.). After triggering a function with this property, the results can be accessed with the from validationResult
property.
The call clear
property clears the form inputs when triggered.
Editor Type | Data type |
---|---|
Text Box
string
Select Box
string
Number Box
number
Check Box
bool
Password
string
Tag Box
array
Date/Time Select
date
Color Select
number (hexadecimal)
Location Select
geojson
Radio Group
string
Text Area
string
Slider
number
Switch
bool