Dropdown, white filed

cyber81 30 Jul, 2018
Hi boys, I read https://www.chronoengine.com/faqs/74-chronoforms/chronoforms6/5287-dynamic-dropdown-options How To and when I debug forms in effect the system read table:
​[pre][var] => Array
([br] [Forte] => Forte[br] [Pallino] => Pallino[br] )[/pre]
Dropdown, white filed image 1
But the dropdown do not work (white choice).

Dropdown, white filed image 2
I tried {var:read_data4} too
[br]Anyone can help me?
healyhatman 30 Jul, 2018
Is your read_data returning the correct type, in this case "An array of key/value pairs" ?
cyber81 30 Jul, 2018
Dropdown, white filed image 3

On load event !
cyber81 30 Jul, 2018
Array
(
    [format] => html
    [Itemid] => 1033
    [option] => com_chronoforms6
    [view] => form
)
Array
(
    [read_data4] => Array
        (
            [log] => Array
                (
                    [0] => SELECT COUNT(`data4`.`aid`) AS `data4.count` FROM `ifr76_chronoforms_6_data_asti-inserimentolavoratore` AS `data4`;
                    [1] => SELECT `data4`.`aid` AS `data4.aid`, `data4`.`cognome` AS `data4.cognome` FROM `ifr76_chronoforms_6_data_asti-inserimentolavoratore` AS `data4` LIMIT 100;
                )

            [var] => Array
                (
                    [9] => Forte
                    [12] => Pallino
                )

        )

)
healyhatman 30 Jul, 2018
Defonitely should be {var:read_data4}
Make sure the read data is before the section load
cyber81 30 Jul, 2018
don't work😟
healyhatman 30 Jul, 2018
Well of course not you have it in a seperate event for some reason

Drag it into the top of the load event.
cyber81 30 Jul, 2018
thank you very much.. now it works!
This topic is locked and no more replies can be posted.