Hi
Your array is a simple array.
You do have an associative array, like this:
array(0=>'Citroën', 1=>'Peugeot', 2=>'Renault');
One thing like this in php:
$varPhp= array(0=>'Citroën', 1=>'Peugeot', 2=>'Renault');
To return a php var in a form:
$this->set("ieraora", $varPhp);
So, in your Dropdown element, you can use:
{var:ieraora}
Without php, you can do that...
1) In Load/Actions, create a Basic Databuilder
+Value, Type=Variable, Name=tmp, Value=Renault,Citroen, Peugeot
+Value, Type=Variable, Name=tmp, Value={var:split[]:tmp}
2) In Load/View,:
Create your dropdown element
Name=myvar, Options={var:tmp}
Create a submit button
3)in Submit action
create à Message
Content={data.pr:myvar}
You'll find 0 for Renault, 1 for Citroen, 2 for Peugeot
Ok Colnem, the post #397607 not resolve the question.
The post #397608... refers to CF6??
I tried to post a easy question (because i think that is the block) , but really I need of an list of items from a table database, filtered by a value of every repeater.
I thought to print an array ( maybe using a loop) and select every row in a dropdown {var:ieraora.[n]} ??
I hope I was clear. I thank you if you can help me.
OK
Sorry, but I don't understand very well: my english is not enough good.