Textfield
The textfield represents a standard textfield, like input[type="text"]. It can also have an specific input type like number.
Example
{
type: "textField",
name: "shoeSize",
label: "Whats your shoe size?",
inputType: "number",
helpText: "Lorem ipsum dolor.",
conditions: [
{
name: "hasShoes",
mustBe: "==",
value: "no",
},
],
validations: [
{
mustBe: 'min',
value: 36
},
{
mustBe: 'max',
value: 45
}
]
}
Reference
inputType
Text based input type regarding to the w3c docs. If the type attribute is not specified, the default type is "text".
| Type | Required | Default |
|---|---|---|
| string | no | "text" |