[CLOSED] Allow only String and number only in TextField

  1. #1

    [CLOSED] Allow only String and number only in TextField

    hi
    in my case i have a textField which allow only text and Number except Special Characters like numericField. How to achive it.

    thanks

    by
    Antony
  2. #2

    RE: [CLOSED] Allow only String and number only in TextField

    Hi Antony,

    You can set the MaskRe property on the <ext:TextField> to filter keystrokes.

    Documentation

    http://extjs.com/deploy/dev/docs/?cl...;member=maskRe

    Hope this helps.

    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] Allow only String and number only in TextField

    thanks man this worked..
  4. #4

    RE: [CLOSED] Allow only String and number only in TextField

    Hi. I'd like to know the detail of how to set <ext:Numberfield > to allow number only and <ext:Textfield > can allow alphabet only.
    I cant understand yet what value I should fill in MaskRe
    Thank you
  5. #5
    Hi Dinni Hayyati,

    Please start a new forum thread. If you feel the threads are related, please feel free to cross link between two.

Similar Threads

  1. Replies: 0
    Last Post: Dec 02, 2011, 12:23 AM
  2. Replies: 1
    Last Post: Feb 28, 2011, 8:13 AM
  3. Replies: 4
    Last Post: Feb 01, 2011, 11:54 AM
  4. Replies: 2
    Last Post: Nov 15, 2010, 12:13 PM
  5. Replies: 3
    Last Post: Nov 12, 2008, 5:16 AM

Posting Permissions