• Resolved supernova42

    (@supernova42)


    When specifying a text-line field, is there a way I can restrict the number of characters that the user enters. When using it for say an address field I would like to restrict it to say 25 characters. At the moment there isn’t any restriction on the length and if someone enters too many characters it messes up my screen display.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Probably the easiest way to do this is to use the “maxlength” attribute in the field definition… for example:

    maxlength:25

    you will probably want to use the help text to tell the user what the limit is.

    Thread Starter supernova42

    (@supernova42)

    I looked ages for that function but couldn’t find it.

    I used maxlength::25 works great

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Character length of text-line’ is closed to new replies.