Text field entry validation.

  1. #1

    Text field entry validation.

    Hi team,

    i need a help, i have a grid and a textfield inside ext:ComponentColumn, i need to set a validation, as per validation it should to taking integer values only and that to from 0 to 10 on ( ex. 11 not valid).

    i have done integer validation by MaskRe="/[0-9]/" MaxLength="2" , but not able to validate up to 10.
  2. #2
    Hello Prasoon, from your side, is it possible to replace TextField by NumberField, as shown below?

    <ext:NumberField MinValue="0" MaxValue="10" AllowDecimals="false" runat="server" />
  3. #3
    i have done integer validation by MaskRe="/[0-9]/" MaxLength="2" , but not able to validate up to 10.
    Please try the following
    <ext:TextField Regex="^([0-9]|10)$" MaxLength="2" EnforceMaxLength="true" runat="server" />
  4. #4
    Sorry for the delay in response and thanks for your suggestion :).

    Please mark it as CLOSED.

Similar Threads

  1. IP field localization / validation
    By RaphaelSaldanha in forum 3.x Help
    Replies: 7
    Last Post: Jan 19, 2015, 11:35 AM
  2. [CLOSED] Time field manual entry
    By mohan.bizbites in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 16, 2013, 5:32 AM
  3. Replies: 2
    Last Post: Nov 09, 2012, 3:23 PM
  4. Replies: 4
    Last Post: Dec 09, 2011, 12:15 PM
  5. Replies: 2
    Last Post: Aug 19, 2011, 1:36 PM

Tags for this Thread

Posting Permissions