Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Character Limit Form

6 years 10 months ago #1

  • Alma's Avatar
  • Alma
  • Posts: 32
Hi, i need a limit in a text area to 100 characters, how can i do that?

6 years 10 months ago #2

  • Artem's Avatar
  • Artem
  • Posts: 11280
Hi,

there is no way to add "Character Limit" from the admin panel. Tomorrow during our support hours we'll provide you solution. If 100 characters limit will be for all text area's in your form, it will be "ok" for you?

Have a nice weekend!

Regards,

6 years 10 months ago #3

  • Artem's Avatar
  • Artem
  • Posts: 11280
Hi,

Here is solution, go to: components/com_baforms/helpers/bafroms.php

Line 321, replace to
$html .= '<textarea maxlength="100" style="height:' .$formSettings[3]. '; ';

Regards,

6 years 10 months ago #4

  • Alma's Avatar
  • Alma
  • Posts: 32
no, it will be only for one text area.

6 years 10 months ago #5

  • Artem's Avatar
  • Artem
  • Posts: 11280
I'm sorry, but for the moment we can propose you to set limit for all text areas. At this week we plan to launch new version of Forms and this feature will be added for text inputs and text areas

Regards,

6 years 10 months ago #6

  • Alma's Avatar
  • Alma
  • Posts: 32
ok, we will wait for the new version, thanks!
Powered by Kunena Forum