Hi, i've a problem with checkgroup events. It doesn't enabled and disable when i check or unckeck.
The same procedure with a radio box works. Why?
The same procedure with a radio box works. Why?
Hi eleo_,
I just had a look at this and I think that there is a ChronoForms bug - actually an error in the event logic for checkbox groups.
What is does is two checks:
+ In the = case it looks for
+ in the != case it looks for
(Note that works fine for a Radio Button Group where apple will be unchecked if one of the other buttons is checked.).
I think that the only answer for the moment is to use custom JavaScript to handle this.
Bob
I just had a look at this and I think that there is a ChronoForms bug - actually an error in the event logic for checkbox groups.
What is does is two checks:
+ In the = case it looks for
if($("[name='checkbox_group1[]'][value='apple']").prop("checked")
that's fine and works OK
+ in the != case it looks for
if($("[name='checkbox_group1[]'][value!='apple']").prop("checked")
this is NOT OK - it is checking to see if any of the other boxes are checked, not if apple is un-checked :-(
(Note that works fine for a Radio Button Group where apple will be unchecked if one of the other buttons is checked.).
I think that the only answer for the moment is to use custom JavaScript to handle this.
Bob
Thanks Bob, i'm happy to had discovered a bug.
But, what do you mean with "I think that the only answer for the moment is to use custom JavaScript to handle this."
Thanks
But, what do you mean with "I think that the only answer for the moment is to use custom JavaScript to handle this."
Thanks
Hi eleo_,
Just that as you can't use the built-in event handler you have to write your own JavaScript to handle this requirement.
Hopefully Max will fix the bug in a future release.
Bob
Just that as you can't use the built-in event handler you have to write your own JavaScript to handle this requirement.
Hopefully Max will fix the bug in a future release.
Bob
This topic is locked and no more replies can be posted.