Two button switch

How to trigger server-side switching with two buttons in ChronoForms.

Overview

The issue occurs when incorrectly mixing client-side event triggers with server-side event switchers, causing the buttons to have no response.
Use the Event Switcher for server-side actions and configure an Event Listener to submit the form after setting the switch value.

Answered
ChronoForms v8
Fl Flamingo 07 Dec, 2025

I have two buttons that are supposed to perform two different actions. These are my settings. There's no response when I click. What's wrong?

The second button has the name: button12A and the Trigger: akt12AThe switcher has the settings below width PHP in akt12A  -> echo "Button A"; exit;

Max_admin Max_admin 08 Dec, 2025
Answer

Hi Flamingo

You are mixing 2 things here, the Events Triggers can be used by the Events Listeners only and those are for client side interactive events.

On the other side, the Event Switcher is for server side switching.

Events Triggers & Listeners tutorial is here

Event Switcher tutorial

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Fl Flamingo 10 Dec, 2025

Hi Max_admin

Your information was helpful for understanding. Thank you very much.

However, I still don't understand how to integrate the two buttons. Basically, I need server-side switching for two separate program sequences. This part works. I can also can set a switch value with these buttons. But how do I trigger the submit after the flag is set? Does the "Button" button type come into play here? I hope you understand what I mean..

Fl Flamingo 11 Dec, 2025

I'm implementing the requested functions using JavaScript.

It's difficult to explain clearly in just a few sentences.

The issue is resolved.

Max_admin Max_admin 12 Dec, 2025

Hi Flamingo

Great news, if you need to submit the form then you can do that through an Event Listener:

Two button switch image 1

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Post a Reply