1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    7
    Vote Rating
    0
    sruthi v m is on a distinguished road

      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
    Vote Rating
    2
    Answers
    10
    netemp is on a distinguished road

      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,773
    Vote Rating
    372
    Answers
    578
    skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute

      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
    sruthi v m is on a distinguished road

      0  

    Smile

    thank you for your reply

Thread Participants: 2