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?
Hi kraadde
Add both values to trigger of the same name as shown:
the trigger will run only if both conditions are met, when the checkboxes have both values checked
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?
I have added shortcodes support for the triggers values in the next update, when do you need to have the download ?
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 :)
Dear Max,
I tried the proposed as follows with no success. Have I done everything wrong?
My goal is to have the field shown datum_vorz only when both checkboxes datim_1 and datum_2 are checked. If only one is checked datum_vorz field should remain hidded.
Can you help me? Thanks
Dynamic options is: