Bug on check/uncheck event with radio button

easi services 04 Dec, 2014
Hi,

I found a bug when setting an event on a radio button, on the check/uncheck event.
File administrator/components/com_chronoforms5/chronoforms/actions/html/html.php
Line 545
Replace
$return .= 'if($("[name=\''.$field['name'].'\']").val() '.$operator.' "'.$event_data['state'].'")';

With
$return .= 'if($("[name=\''.$field['name'].'\']:checked").val() '.$operator.' "'.$event_data['state'].'")';


You forgot the :checked state, without this state the radio value always return the first radio button value

Enjoy😉
Ray
Max_admin 04 Dec, 2014
Hi Ray,

Thank you, yes, then bug has been fixed but was not published yet, thanks for posting the fix here!🙂

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.