How to limit the input in a textbox

rss

Posted by Gerald Marxer - Dec 2 ’14 at 12:05

Is it possible to limit the number of characters in a multiline string input field ?

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 5 months 6 days
    #1 by Dmitry Kozlov Dec 3 ’14 at 04:27

    It's possible but with plain text fields only. Please, put the following code into JS-editor:

    fd.field('TextField').control()._el().find('textarea').attr('maxlength', 10);

    Replace the hightlighted text with the internal name of your text field and its maximum length.

Displaying 1 to 1 of 1 messages