I have an existing Event Switcher action configured and working with 4 already created events. I need to add an additional event, but if I simply add a new event name to the list and save nothing happens. If I add the name and then ask to load events, all my existing event code is lost.
Existing Event Switcher Configuration
[attachment=0]EventSwitcher1.PNG[/attachment]
Event Switcher after adding new event and clicking Load Events
[attachment=1]EventSwitcher2.PNG[/attachment]
How can I add a new Event Switcher event without losing all my existing event code?
Existing Event Switcher Configuration
[attachment=0]EventSwitcher1.PNG[/attachment]
Event Switcher after adding new event and clicking Load Events
[attachment=1]EventSwitcher2.PNG[/attachment]
How can I add a new Event Switcher event without losing all my existing event code?
Hi MainsailSoftware,
I've tested and can confirm that I see the same behaviour :-( I don't have a fix though. I guess that you can add a second Event switcher after this (or embedded in one of the existing events - ugly but might work).
Bob
I've tested and can confirm that I see the same behaviour :-( I don't have a fix though. I guess that you can add a second Event switcher after this (or embedded in one of the existing events - ugly but might work).
Bob
Too bad you cannot copy-past for Setup actions like you can for Designer elements. It is not all that much code; I can recreate a new Event Switcher, add actions to it, and copy-paste the code from the old to the new, deleting the old after I have finished.
It would be nice to be able to add events after the fact to the Event Switcher, keeping the existing code! My switcher events are driven off of dropdown menu choices the user makes (in this case mass email address lists based on groups pulled from database tables), and I may need to add new menu choices in the future.
Any idea how much effort it would be to allow insertion of new events into the Event Switcher?
It would be nice to be able to add events after the fact to the Event Switcher, keeping the existing code! My switcher events are driven off of dropdown menu choices the user makes (in this case mass email address lists based on groups pulled from database tables), and I may need to add new menu choices in the future.
Any idea how much effort it would be to allow insertion of new events into the Event Switcher?
Hi MainsailSoftware,
Sorry I've never tried to reverse engineer the admin code so have no idea how easy (or not) it would be to add the ability to include extra events.
Bob
Sorry I've never tried to reverse engineer the admin code so have no idea how easy (or not) it would be to add the ability to include extra events.
Bob
Since I am simply using a Switch statement in the Event Switcher with no default case, the code flow simply drops out of the Event Switcher as no matching event is found. This does make it simple to just add another Event Switcher action after the first to catch the other cases in it's Switch statement. This is the workaround I decided to utilize and it works just fine.
Is inserting an event into an existing Event Switcher something Max could look at or is this a Joomla functionality issue?
Is inserting an event into an existing Event Switcher something Max could look at or is this a Joomla functionality issue?
Hi MainsailSoftware,
I think that it is strictly a ChronoForms issue, I have no idea how easy it would be to change though.
Bob
I think that it is strictly a ChronoForms issue, I have no idea how easy it would be to change though.
Bob
Hi,
I will try to add this improvement to the next update!
Regards,
Max
I will try to add this improvement to the next update!
Regards,
Max
Hi,
Are there any news regarding this issue? I have multiple forms with multiple events where I need to add the new event and now it looks like I'll have to recreate every event because Load events destroys existing code.
Maybe there is a workaround to add the event without loosing existing ones?
Are there any news regarding this issue? I have multiple forms with multiple events where I need to add the new event and now it looks like I'll have to recreate every event because Load events destroys existing code.
Maybe there is a workaround to add the event without loosing existing ones?
Hi grzybu,
I have no news of a new release.
As a workaround you can add a second Event Switcher after the first one and add the new events there - with maybe a few spares for use in the future.
Bob
I have no news of a new release.
As a workaround you can add a second Event Switcher after the first one and add the new events there - with maybe a few spares for use in the future.
Bob
This topic is locked and no more replies can be posted.