Skip to main content

Limit character length of textarea input

I would like answers to survey questions, not novellas. Is it possible to render a form element in a custom template that has in it?

Official response from

You can definitely add a maxlength parameter to the text area field.  

So for example,  adding a maxlength="400" will stop the user from entering more than 400 characters to your form. Here is an example:  {% text_area "content", class:"textarea" maxlength="10" %}

 

Here is a visual of this in the survey page template: 

 

 

 

 

Share this post

Showing 3 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.