Remember me

Character Limit Form

7 years 6 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?

7 years 6 months ago #2

  • Artem's Avatar
  • Artem
  • Posts: 11342
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,

7 years 6 months ago #3

  • Artem's Avatar
  • Artem
  • Posts: 11342
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,

7 years 6 months ago #4

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

7 years 6 months ago #5

  • Artem's Avatar
  • Artem
  • Posts: 11342
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,

7 years 6 months ago #6

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