Dear Support,
i strugle to get a Dynamic Dropdown running. My problem is that the dynamic options nor will be passed to the dropdown.

The data seems to be importet in as var.

The dynamic option is configurated.

But the matching of Option data and Dropdown seeams to be messed up.

Can you give me an advice how to fix it?
Best Regards
Collie-IT
i strugle to get a Dynamic Dropdown running. My problem is that the dynamic options nor will be passed to the dropdown.

The data seems to be importet in as var.

The dynamic option is configurated.

But the matching of Option data and Dropdown seeams to be messed up.
Can you give me an advice how to fix it?
Best Regards
Collie-IT
The "option data value" should be {var:Countries.id} for example
After Debuging I found out that chronoforms7\chronog3\admin\extensions\chronofc\behaviors\views\field_dynamic_options\field_dynamic_options_output.php Line 22
I fixed this with following ugly solution
$this->controller->Parser->parse($opdata['value'])returns allways null.
I fixed this with following ugly solution
if(!empty($unit['data_source'])){
$results = $this->controller->FData->dsources($unit['data_source']);
foreach($results as $result){
foreach($result as $mkey => $mdata){
$this->set($mkey, $result[$mkey]);
}
$option = ;
$value = '';
foreach($unit['dynamic_options']['option_data'] as $opdata){
if($opdata['type'] == 'value'){
$value = $result[$opdata['value']];
}
if($opdata['type'] == 'content'){
$value = $result[$opdata['value']];
}
$option[$opdata['type']] = $value;
}
$unit['foptions'][$value] = $option;
}
}
This topic is locked and no more replies can be posted.