How can I limit users from typing more than 40 characters in a field?

zabrina
Mega Expert

One issue we're having is that some users are typing the actual description in the 'short description' or 'request title' field. This information is then cut off when the form is submitted because of the 40 character limit. The field should not allow them to type more than 40 characters. Is there a way to do this? Thanks.

1 ACCEPTED SOLUTION

Deepa Srivastav
Kilo Sage

Hi ,



Click on configure variable.Goto default Value tab-->in variable attribute field add below.


max_length=40


This will solve your issue.



Please mark Helpful, Like, or Correct Answer if applicable.


View solution in original post

26 REPLIES 26

it doesnt allows typing also..test it by giving max_length= 5 once.


nope. let me try it here under max length


find_real_file.png


it that a variable or a field? I think its happening because of that knowledge search attribute..it works for simple string field..


zabrina
Mega Expert

I am typing many characters into the field, but I want the program to stop me from typing at 40 characters. I don't want it to only cut it off after I've submitted the form.



find_real_file.png


please provide screenshot where you configured max_length=40