TextField MaxLength not working

  1. #1

    TextField MaxLength not working

    Hello,

    I am setting the max length property in a textfield but it is not working..

    here the example:


    <ext:TextField ID="startSessionTextField" runat="server" FieldLabel="Account" AllowBlank="false" EnableKeyEvents="true" BlankText="The account is required." Text="XXX" MaxLength="10" AnchorHorizontal="95%" IndicatorIcon="Accept" Regex="^[a-zA-Z0-9]{5,10}$" RegexText="Invalid" />

    Is that a bug ?


    thanks in advance!
    Last edited by Daniil; Jun 18, 2012 at 11:27 PM. Reason: Please use [CODE] tags
  2. #2
    Hi,

    Please also set up
    EnforceMaxLength="true"
    http://docs.sencha.com/ext-js/4-1/#!...forceMaxLength

Similar Threads

  1. issue about maxlength of TextField
    By sonnh11 in forum 1.x Help
    Replies: 4
    Last Post: Jan 07, 2013, 6:33 AM
  2. [CLOSED] TextField - Maxlength
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 17, 2011, 6:20 PM
  3. change textfield maxlength
    By [WP]joju in forum 1.x Help
    Replies: 1
    Last Post: Sep 24, 2009, 4:51 AM
  4. MaxLength validation in TextField & NumericField
    By madhugumma in forum 1.x Help
    Replies: 0
    Last Post: Aug 06, 2009, 4:46 AM

Posting Permissions