cancel
Showing results for 
Search instead for 
Did you mean: 

Maxlength for input field or text edit

Former Member
0 Kudos

Hello,

how can I limit the number of characters in an input field or text edit? If my data base field for a specified input field allows e.g. 20 characters, the user should not be able to fill in more (than these 20 characters).

Regards Horst

Accepted Solutions (0)

Answers (3)

Answers (3)

wanlin_hau
Explorer
0 Kudos

Set the maximum length of simple data type to 20 should solve the problem.

Former Member
0 Kudos

If you look in to the Properties of the fields you will come across a attribute called length. Just provide the no. as much as you want.

Former Member
0 Kudos

Hi Kumar,

The lenght property of the input field does not limit the number of characters. It indicates the width in characters.

Regards

Florian

Former Member
0 Kudos

Hello Horst,

the responsibility of the lenght of a string or other limitations are on the type side.

-> It doesn't matter what control - you have to select the right data type.

Because there is no standard type which has the string length 20 you have to make your own.

This can be done using a simple type in the Project Dictionary.

Afer creation, assign this type as "value" property to your input field or text edit control.

Regards,

Florian