Input fields form lenght

Permalink
Hello. I have a problem with finding a place where you can set the maximum number of characters to be entered in the block form. I wish such a text field can contain only 100 characters for example . It is possible that somewhere settings from in controller?

lukasznillo
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi lukasznillo,

What version of concrete5 are you using?

You could limit the character count using jQuery in the form input. In the controller save() method you could save only the first 100 characters.
lukasznillo replied on at Permalink Reply
lukasznillo
hi i use last stable version 5.6.3.3
tonyswaby replied on at Permalink Reply
If you identify the input field you can do it with straight JavaScript or jquery. Depends on your site which will work best.