Skip to main content

Text

Generates a text input field allowing users to input data, with a variety of options for additional help and guidance information.

Basic usage

{{
form.text({
'label': 'My label',
'id': 'guid-' ~ random(),
'name': 'text-1'
})
}}

Helper options

You can configure this helper using the common helper options. The following options are specific to this helper.

OptionTypeDescription
appendstringText or markup to include after the input element
append_typestringUse only when appending a button. button is the only valid value
prependstringText or markup to include before the input element
prepend_typestringUse only when prepending a button. button is the only valid value