Forums

Event Switcher in Chronoforms v5 not working, Possible JS error.

chronoben 29 Mar, 2014
Answer
Hi,
While working with Chronoforms V5 I noticed the event switcher action does not load events once you click the "load events" input field. Normally you can have as many events as you wish (not just success,fail) and once you click Load events (even without saving the action), it should display newly loaded events...

Here is the fix:

in the line with this:
var events = jQuery(elem).closest('.gform-line-tr').prev().find('#event_switcher_events_'+SID).val().split(',');


Change to this:

var events = jQuery(elem).closest('.gcore-form-row').prev().find('#event_switcher_events_'+SID).val().split(',');


The problem was that JQuery was unable to find the element due to this class:
.gform-line-tr
, because the element was instead a child of this class:
 .gcore-form-row


Sincere apologies if this has been fixed, found it no where in the forums. Plus the files definitely don't have this fix yet.

Cheers.
chronoben 29 Mar, 2014
Sorry, mentioned the line but not the file...
<site_root>/administrator/components/com_chronoforms5/chronoforms/actions/event_switcher

We really need to be able to edit owner posts. Cheers!
chronoben 29 Mar, 2014
Sorry, mentioned the line but not the file...
<site_root>/administrator/components/com_chronoforms5/chronoforms/actions/event_switcher/event_switcher.php


We really need to be able to edit owner posts. Cheers!
Max_admin 29 Mar, 2014
Hi chronoben,

Do you have the latest v5 RC5 ? if not then please update yours!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
chronoben 29 Mar, 2014
Thanks, didn't know of that update. Cheers.
This topic is locked and no more replies can be posted.