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

rajeshraya
Giga Expert

You can update the max length for the respective field using configure dictionary option.



open the form


right click on the field and select configure dictionary


look for max length field and update it to 40


hit save or submit


When I right click o the field it only says configure variable. The length field is already 40 characters but I want the field to stop users from typing after 40. Like there is an actual limit to how much they can type.


Harsh Vardhan
Giga Patron

Hi Zabrin,



Did you check the size of the string.



form design>description field> click on gear icon



Please refer the screenshot below.


desc.png




Regards,


Harshvardhan


How do you check that? I am within the variable configuration and there is no max length field. Also we have chosen 'wide single line text' so I think the default is 40 characters. Even so, it cuts off the information after the form is submitted. I am trying to stop the user from typing past 40 anyway. Then they know right away that there is a limit.