Page 1 of 1

How to limit the input in a textbox

Posted: 02 Dec 2014
by Gerald Marxer
Is it possible to limit the number of characters in a multiline string input field ?

Re: How to limit the input in a textbox

Posted: 03 Dec 2014
by Dmitry Kozlov
It's possible but with plain text fields only. Please, put the following code into JS-editor:

Code: Select all

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.