Skip to Content
author's profile photo Former Member
Former Member

Maxlength for input field or text edit

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 29, 2004 at 02:38 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 29, 2004 at 04:04 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 30, 2004 at 05:15 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.