Textarea
Textareas allow users to enter text that’s longer than a single line.
Users can find open-ended questions difficult to answer. It might be better to break up one complex question into a series of simple ones.
Generating a textarea with a label, hint and nine rows
Generating a textarea with a word limit
If a limit on the number of words or characters a user can enter is
required, the max_chars
and max_words
parameters
can be used. They provide feedback on how close the user is to the limit
and automatically show an error if it is exceeeded.
Generating a textarea with a character limit and threshold
If the limit is much higher than most users are likely to reach, you can choose to only display the message after a user has entered a certain amount.
To do this, set the threshold
parameter in conjunction with a
word or character limit.