1. Fields
  2. Text Field

Fields

Text Field

The Text Field is an input field that allows for entering a single line of text.

Basic usage

Adds a text field to the fields of an action.

{
firstname
:
{
name
:
firstname
__key
:
firstname
fieldtype
:
text

Result

The field will be displayed as a text input field as below:

The resultant data will be available in the stubpost.data as:

{
firstname
:
John

This can be substituted with eg. ~~stubpost.data.firstname where required.

Parameters

See fields for common field parameters like validation and conditional rendering.

params.parse_string

If set to true, string values will be parsed and the field's output will be a number or a boolean when parsed successfully.

Default: false