FR

Text

Used to create a single-line, plain-text input field where users can enter free-form text. For quick reference, see technical parameters.

Best practices

  • Use in forms for questions requiring short answers such as name and email.
  • Write clear and specific labels.

Example

Parameters

arialabel
Field label for accessibility purposes
autocomplete
Enable or disable autocomplete
default_value
Set a default numeric value. Applies only to the "number" type.
disabled
Disables the field
html_id
HTML id of the element. Add only if needed to customize styling or needed by Javascript to perform a specific functionality.
label
Label of the field. The content enclosed within the shortcode tags populates this field.
layout
Layout of the field
max
The highest numeric value that can be entered. Applies only to the "number" type.
min
The lowest numeric value that can be entered. Applies only to the "number" type.
name
HTML name of the field
placeholder
Placeholder content for the field. Applies to all types except "number".
required
Set to “true” to make the field mandatory.
type
Type of text field