Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Antonio Amézquita 35 posts 52 karma points
    Nov 27, 2013 @ 08:50
    Antonio Amézquita
    0

    Contour text area max chars

    Hi Umbraco people

    I need to limit the max chars on a textarea, can anybody point me how to do this?

     

    it will be much appreciated

    Antonio

  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 27, 2013 @ 09:02
    Fuji Kusaka
    0

    Hi Antonio,

    Under additional Settings you can make use of Regex to limit number of characters

    ^([A-Z][a-zA-Z]{1, 29})$

    Here min is 1 and max 29

  • Antonio Amézquita 35 posts 52 karma points
    Nov 27, 2013 @ 10:29
    Antonio Amézquita
    0

    Hi Fuji, 

    Thanks for replying, 

    for some reason the reg exp. reports error when starting to write, 

    any idea why?

    http://screencast.com/t/9XAOEQ9pg5OM

     

    thanks much for the help

    Antonio

  • Antonio Amézquita 35 posts 52 karma points
    Nov 27, 2013 @ 11:42
    Antonio Amézquita
    0

    the problem was related to special characters like commas, etc.

     

    thanks for the help

    Antonio

  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 27, 2013 @ 12:17
    Fuji Kusaka
    0

    Try this instead

    ^[A-Z][a-zA-Z]{1,29}$
  • Comment author was deleted

    Nov 27, 2013 @ 12:38
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies