Skip to content

Text and number fields

All types also accept common field options. Defaults below are API defaults unless marked SPA. Unspecified presentation options have no universal default; the active widget decides.

Short text, stored as a string.

Options: secret obscures the SPA input; copyButton, copyTemplate, hide_value, maxlength customize text input. These do not replace server validation.

{"identifier": "example_text", "type": "text", "options": {}}

Multiline text, stored as long text.

Options: SPA secret obscures input; shared field options apply.

{"identifier": "example_textarea", "type": "textarea", "options": {}}

Rich HTML, stored as long text.

Options: SPA: toolbar, toolbar_preset, imageDirectory, imageModule, variables, paste_with_styles; no_paragraphs uses divs and preserve_line_breaks preserves empty divs in that mode.

{"identifier": "example_wysiwyg", "type": "wysiwyg", "options": {}}

Source text, stored as long text.

Options: SPA mode selects html/json/php/javascript/css/recipe; line_wrapping, gutters, default_config, recipe_completions, theme configure the editor.

{"identifier": "example_code", "type": "code", "options": {"mode": "json"}}

Email address. Server adds email validation and nullable unless required.

Options: Shared options; set rules explicitly when replacing generated validation.

{"identifier": "example_email", "type": "email", "options": {}}

Telephone string.

Options: Shared options; no automatic phone number normalization.

{"identifier": "example_tel", "type": "tel", "options": {}}

URL string with a 2048-character server limit.

Options: SPA show_as_iframe embeds the URL.

{"identifier": "example_link", "type": "link", "options": {}}

Masked string, excluded from exports by default.

Options: show_in_export defaults to false. Masking alone does not hash arbitrary fields; processing is determined by the module.

{"identifier": "example_password", "type": "password", "options": {}}

Decimal number.

Options: total_digits: 30; decimal_digits: 2; parse_floats: true. Set false to preserve decimal strings. SPA mode: "badge", badge.number_style control display.

{"identifier": "example_number", "type": "number", "options": {"decimal_digits": 2}}

Decimal amount; inherits number parsing.

Options: total_digits: 30; decimal_digits: 2; parse_floats: true. SPA default_currency and no_currency control the symbol.

{"identifier": "example_currency", "type": "currency", "options": {"decimal_digits": 2}}

Range input backed by a string column.

Options: SPA min, max, step configure the slider; shared options apply.

{"identifier": "example_range", "type": "range", "options": {}}

Rating stored as decimal(2,1).

Options: Shared options; database precision is fixed for this type.

{"identifier": "example_rating", "type": "rating", "options": {}}