Set Max Data Limit on Text and Textarea

How to set a maximum number of characters for Text & Textarea fields.

LikeStuff 14 May, 2025

Hi there,

Is there a way to set a max limit of characters on the text or textarea field?  I can't seem to find that option.

Thanks!

flyboeing 14 May, 2025
Answer
1 Likes

In my textfield I added a 'HTML Attributes' property with the maxlength attribute (in my case I wanted a maximum of 3 characters so it was maxlength=3)

Max_admin 14 May, 2025

flyboeing answer is good, another solution is to use a custom JavaScript validation function

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
LikeStuff 17d ago
1 Likes

Thank you so much!  The HTML Attributes with the maxlength worked.

You need to login to be able to post a reply.

VPS & Email Hosting 20% discount
hostinger