Text

Allows users to submit a single line of text.

Allows users to submit a single line of text.

Block metadata

FieldValue
Namexp/form-field-text
TitleText
Categoryxpac-form-generic-field
API version3
Keywordsxpac, form, field, text
Packageforms
Metadata filedist/packages/forms/blocks/text/block.json

Supports

FeatureValue
classNameDisabled

Attributes

NameTypeDefaultSource/Enum
additionalAttributesobject{}
descriptionstring""source html; selector .xp-block-form-field__description
idstring""
labelstring"Untitled"
labelVisibilitystring"visible"enum "visible", "hidden"
maxLengthstring""
minLengthstring""
namestring""
patternstring""
patternMessagestring""
placeholderstring""
rulesobject{"required":{"value":false,"message":""}}

On this page