hello everybody,
im trying to fill a select box in my form from data from a database table.
the field name is "name_de-DE".
i added "db record loader" before "show html" and added the field name, table name, and a "model id" (ProductName) for the field.
now i'm just trying to echo all "field names" with a simple, custom code script, but it won't work.
can anybody put me in the right direction and tell me how to work my way into getting the data in a select box?
best regards, gatekeepa
im trying to fill a select box in my form from data from a database table.
the field name is "name_de-DE".
i added "db record loader" before "show html" and added the field name, table name, and a "model id" (ProductName) for the field.
now i'm just trying to echo all "field names" with a simple, custom code script, but it won't work.
<?php
echo "test";
foreach($form->data['ProductName'] as $productname):
echo $productname['name_de-DE'];
echo $form->data['ProductName'];
endforeach;
?>
can anybody put me in the right direction and tell me how to work my way into getting the data in a select box?
best regards, gatekeepa