Buy Now
Sign in

Dynamic dropdown how to

Elitakey , November 08 at 11:40
E
Elitakey

Hello, BTW thanks for Chronoforms6! Excelent product!
Here comes the question -
Dynamic dropdown php code you provided in the example gets field name to choose the "case". Is it possible to write the field ID instead? What would be the syntax?
$options = [];
switch($this->data('what_do_you_think'))

Thank you in advance -
Elita

E
Elitakey

P.S. What if this dropdown is included into repeater?
What would be the code if the field name is Persona[{var:area_repeater52.key}][CategorieUCI] ID - CategorieUCI{var:area_repeater52.key} respectively?

Thanks!