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

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.


The field is still allowing people to type how much they want and then cutting it off to fit 40 characters after submittal. I want to limit them RIGHT AWAY. They should not be able to type more than 40 characters INTO the field.


i tested it at my end it doesn't allow...can you once check by reducing max length for like 5 characters? can you provide screenshot ..you have to give it in variable attribute .


hi max.png



Did you mention the max_length=40 in variable attributes field.


it's working in my instance.


Yes it works but that is not my question. The field should not even allow people to type more than 40 characters into it.