1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    11
    Vote Rating
    0
    Answers
    1
    avivenna is on a distinguished road

      0  

    Default Answered: Textbox Validations shows only one error message

    Answered: Textbox Validations shows only one error message


    Hello,

    I have a grid with row editor and one of the columns I am editing is a textbox. It has multiple validations like

    1. Not blank ( I used allowBlank = false and blankText)
    2. I used Regex and regex text
    3. column should have unique values ( I incorporated this by matching against store)
    4. some names restricted.

    When I try to edit the validations show correct ( I mean even if it violates one of the above validations it shows red) but the problem is in all the cases the message shown is blankText message.

    If I comment out allowBlank = false and blankText, other validations are perfectly working

    Any suggestions to resolve this?

    Thanks

  2. Its a bug in ext 4.1.2

    If its empty it shows the blankText, but if it violates any other validation still it shows the blankText.

    This works fine in 4.1.1

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,656
    Vote Rating
    435
    Answers
    3108
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    If the value is empty, the only validation that will be fired is the one for allowBlank.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    11
    Vote Rating
    0
    Answers
    1
    avivenna is on a distinguished road

      0  

    Default


    Its a bug in ext 4.1.2

    If its empty it shows the blankText, but if it violates any other validation still it shows the blankText.

    This works fine in 4.1.1