Problem with Checkgroup Events

eleo_ 20 Oct, 2015
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?
GreyHead 01 Nov, 2015
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
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
eleo_ 02 Nov, 2015
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
GreyHead 02 Nov, 2015
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
eleo_ 02 Nov, 2015
Thanks Bob,
there are some tutorial too write my Javascript code?
eleo_ 03 Nov, 2015
Hi Bob, i try another way. But i can't select the exact option of my checkbox group
This topic is locked and no more replies can be posted.