Text Field

Text Field

Form Field

The text field renders a single line text box. This is the default type used if no type is specified.

blog_title:
    type: text
    label: Blog Title

The following field properties are commonly used.

PropertyDescription
labela name when displaying the form field to the user.
placeholdertext to display in the field when it is empty.
defaultspecifies a default string value, optional.
commentplaces a descriptive comment below the field.

You may use the default property to set a default value.

quote_content:
    type: text
    label: Details
    default: I like turtles

Use the placeholder property to assign some placeholder text.

point_summary:
    type: text
    label: Point
    placeholder: Type some key points are you trying to make
On This Page