Hi,
i try to create a dynamic data for a dropdown-list according to https://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2647-how-do-i-build-a-select-drop-down-radio-button-or-checkbox-group.html.
I use a custum code in onLoad:
The dynamic data settings for the dropdown are:
Data Path: my_option
Value key: ISO
Text key: NAME
What is missing? I always get an empt dropdown...
regards
Florian
i try to create a dynamic data for a dropdown-list according to https://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2647-how-do-i-build-a-select-drop-down-radio-button-or-checkbox-group.html.
I use a custum code in onLoad:
<?php
$countries=array(
array("ISO" => "AF", "NAME" => "Afghanistan",),
array("ISO" => "AL", "NAME" => "Albania",),
array("ISO" => "DZ", "NAME" => "Algeria",),
);
$form->data['my_option']=$country;
?>
The dynamic data settings for the dropdown are:
Data Path: my_option
Value key: ISO
Text key: NAME
What is missing? I always get an empt dropdown...
regards
Florian