Results 1 to 4 of 4

Thread: validations that accepts special characters and alphanumeric characters.

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    7
    Vote Rating
    0
      0  

    Smile Unanswered: validations that accepts special characters and alphanumeric characters.

    I have a text field and I need to accept special characters and alphanumeric characters as input for this text field. please help me to write the validation for this.

  2. #2
    Sencha User
    Join Date
    Feb 2011
    Posts
    174
    Answers
    10
    Vote Rating
    2
      0  

    Default

    Sruthi, a normal textfield would already allow you to type in any character, that is all special characters are allowed by default unless you apply some validation exclusively to disallow some.

    Thus, if you have put up some validation for your textfield then remove it and the user would be able to enter any character in the textfield.

  3. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    390
      0  

    Default

    Perhaps it would help to elaborate on what you mean by 'special characters'?

    Usually such a thing is done using the regex config option:

    http://docs.sencha.com/ext-js/4-0/#!...Text-cfg-regex

  4. #4
    Sencha User
    Join Date
    Nov 2011
    Posts
    7
    Vote Rating
    0
      0  

    Smile

    thank you for your reply

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •