Forums

event trigger / listener

kraadde 4d ago

Max,

I have a checkboxgroup datum_teiln with options date_1 and date_2. populated by a php80 like:

$options = [
    ['value' => $this->data("datum_1"), 'text' => $this->data("datum_1")],
    ['value' => $this->data("datum_2"), 'text' => $this->data("datum_2")]
];
return $options;

this is working OK.

Now i want a second field datum_vorz that shows only whenever the user has selected both checkboxes.

I think this should be possible with an event trigger in the datum_teiln and a listener in the datum_vorz.

Is that a possible way and how to setup the event trigger?

Max_admin 4d ago
Answer

Hi kraadde

Add both values to trigger of the same name as shown:

{item:title} {images:#}

the trigger will run only if both conditions are met, when the checkboxes have both values checked

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kraadde 3d ago

Undertood, but the problem is that the value_1 or value_2 are dynamic values, as my php code above shows! so how to solve?

Max_admin 3d ago

I have added shortcodes support for the triggers values in the next update, when do you need to have the download ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kraadde 3d ago

asap, but a few days are ok. Let me know how to use. Thanks.

Max_admin 3d ago

You will need to use {data:datum_1} in the Values selector, that's all, everything is similar to the image I posted

if the new update is published when you check again in a few days, please post here and I will speed it up :)

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kraadde 3d ago

Thanks Max I appreciated.

You need to login to be able to post a reply.