How to limit the input in a textbox

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Gerald Marxer
Posts: 6
Joined: Tue Dec 02, 2014
Contact:

02 Dec 2014

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

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

03 Dec 2014

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.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests