Properties

Properties for Input control

Name
Description
Default
Mandatory

type

Control implementation

N/A

id

Unique ID within the flow

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.always_include

Should data be sent to pipe regardless if it is changed or not

false

config.format

Frontend format validation. See more below

N/A

config.pattern

Custom format pattern. Use for custom pattern. Otherwise leave.

N/A

Frontend format validation.

By setting config.format, it guides the user entering value following a defined ruleset. A predefined set is available:

Setting a custom regex is done using config.pattern to regex

Example:

"pattern":"^[A-Za-z -]{3,30}$"

  • Start (^) and end ($) exactly with

  • Only contain uppercase letters (A–Z), lowercase letters (a–z), spaces, or hyphens (-)

  • Have a length between 3 and 30 characters

Once set, custom error message needs to be put in for displaing a functional error message:

In this case "phone.error.format".