Forums

Dynamic dropdown how to

Elita- 08 Nov, 2017
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
Elita- 08 Nov, 2017
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!
This topic is locked and no more replies can be posted.