Hello,
i have a Problem with the dynamic Dropdowns in a Multiplier.
The Name od the first Dropdown ist "text[__N__][field1]" (__N__ is the Replacer)
The Name of the second Dropdown is "text[__N__][field1]". Under "Events" in the first dropdown is Action: "Set Dynamics Options" and a Function "Load_daten"
this is the Function (in Setup-Section):
But it does not work, the second drop is not loaded with data
Here is the array, which is displayed in the debugger
Sorry for my bad english, I have never learned the language!
Please help
Luky
i have a Problem with the dynamic Dropdowns in a Multiplier.
The Name od the first Dropdown ist "text[__N__][field1]" (__N__ is the Replacer)
The Name of the second Dropdown is "text[__N__][field1]". Under "Events" in the first dropdown is Action: "Set Dynamics Options" and a Function "Load_daten"
this is the Function (in Setup-Section):
<?php
$clubs = array(
"ENG" => array("Arsenal" => "Arsenal", "Chelsea" => "Chelsea", "Liverpool" => "Liverpool", "Manchester" => "Manchester"),
"GER" => array("Bayern Munchen" => "Bayern Munchen", "Dortumund" => "Dortumund", "Shalcke" => "Shalcke"),
);
echo json_encode($clubs[$form->data["text"]["field1"]]);
But it does not work, the second drop is not loaded with data
Here is the array, which is displayed in the debugger
Array
(
[option] => com_chronoforms5
[chronoform] => demo-dynamic-dropdown2
[event] => submit
[text] => Array
(
[0] => Array (= Replacer "__N__")
(
[field1] => ENG
)
)
[button3] => Submit
)
Sorry for my bad english, I have never learned the language!
Please help
Luky