FieldType
Enum used as the first argument to new Field(...).
import FieldType from '@orchesty/nodejs-sdk/dist/lib/Application/Model/Form/FieldType';
Values #
| Value | Renders as |
|---|---|
FieldType.TEXT | Single-line text input. |
FieldType.NUMBER | Numeric input. |
FieldType.URL | URL input with light validation. |
FieldType.PASSWORD | Masked input; persisted encrypted. |
FieldType.SELECT_BOX | Dropdown; populate with addChoice(value, label). |
FieldType.MULTI_SELECT | Multi-select; populate with addChoice(value, label). |
FieldType.CHECKBOX | Boolean toggle. |
See also #
- FormStack, Form, Field
- PHP equivalent:
Field::TYPE_*constants onForm.