Check box validation error

Former Member
Former Member

Hi,

We have checkbox group as

in 11.x code is working excellent where as in 12.x its only validating first check box and ignoring other check boxes.

Parents
  • Former Member
    0 Former Member

    Any suggestions how to go-ahead 

  • Hi  . Sorry for the troubles. There were some updates to validation support in 12.1 which could have impacted this. But to get a little more context, as these are checkbox inputs and not radio inputs, what is your expectation for how the required field validator should behave?

Reply
  • Hi  . Sorry for the troubles. There were some updates to validation support in 12.1 which could have impacted this. But to get a little more context, as these are checkbox inputs and not radio inputs, what is your expectation for how the required field validator should behave?

Children
  • Hi  ,

    As you can see above there are three checkboxes out of which the user should select at least one of them. 

    In 11.x it used to work but in 12.x the validation is only checking the first checkbox

  • To be specific "The required filed Message" won't allow us to proceed even if we check the other two checkboxes, It only disappears when we check the first check box and then allows to proceed to submit

  • Hi  

    Do we have any workaround or a bug regarding thsi?

  • Hi . Sorry for the delay.

    The old behavior to validate that a single checkbox within a list of checkboxes is checked relied upon the undefined and undocumented behavior of an underlying dependency. Instead, I'd recommend using the addCustomValidation method of the evolutionValidation jQuery Plugin.  

    I've attached a sample widget showing an adaptation of your above code with custom validation implemented: 

    Hope this helps!