Properties for Input control
type
Control implementation
N/A
id
Unique ID within the flow
N/A
data
Value to display from session or flow. {{{flow.attribute}}} {{{session.attribute}}}
N/A
config.required
Must have a value when leaving the step. true
/false
false
config.readonly
Open to edit by enduser. true/false
false
config.type
Type of input value. Valid JSON types are: string, number, integer, boolean.
"string"
schema.format
Validation of input data. Valid checks: strict, email, phone, postal. See below for more info.
N/A
This is an example from a create step where values are to be added. Mail and mobile have checks for correct syntax.
This is an example from a create step where values are to be added from a session. In this scenario a user has logged in using Swedish BankID.
This is an example from a step where values are to be added from a previous step or from a pipe in a previous step.
The 'config.type' determines how the control is displayed in the view.
For the type 'string' the field can be validated before it is sent to the pipe or next step. The 'strict' validation is recommended as it blocks several common special characters not suitable for Pipe/Valve data handling. Postal is post address.