1. #1
    Ext JS Premium Member
    Join Date
    Oct 2009
    Location
    Hamilton ON Canada
    Posts
    25
    Vote Rating
    0
    fargs is on a distinguished road

      0  

    Default Radio Group / Checkbox Group Model Validation Error Messages

    Radio Group / Checkbox Group Model Validation Error Messages


    Hey,

    Just solved a problem that I thought I would share.

    My Scenario:
    Model field that must be Yes (used Inclusion validation with a list that includes the value 1)
    Used a radio group with 2 radio buttons, Yes and No. Input Values 1 and 2 respectively.

    Problem:
    Error message was not showing because the "name" property is on the radio buttons which do not present validation messages.

    Solutions:
    Set the config value "CombineErrors", which defaults to false, to true.
    This will allow the form to show the error messages from the model validation on the RadioGroup or Checkbox Group.

    Hope that helps someone out!

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    Vote Rating
    873
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for sharing with the community!
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

Thread Participants: 1