Wow thanks both of you!
Again late 
I buit a function for the newlines solution:
function newlinesToOption($field){
$select = "<select>";
foreach(explode("\n", $field) as $line){
$line = trim($line);
$lowerLine = strtolower($line);
$select .= "<option value='$lowerLine'>$line</option>";
}
$select .= "</select>";
return $select;
}
echo newlinesToOption($page->yourField);
Diogo, is this code that I can copy and paste into a new module?
Pages are great for this. A recent new feature allows you to add pages in a page select, you can enable it in the fields input settings.
Using pages you could setup a section for the user to add pages used as options later, and even sort them in the tree. No need to even have a select page field on the page.
You could also just use that "section" and it's childs to output the options.
echo "<select name='myoptions'>";
foreach($pages->get("/myoptions/")->children() as $option){
echo "<option value='$option->name'>$option->title</option>";
}
echo "</select>";
or if through a page select field "select_options" on page it would be
echo "<select name='myoptions'>";
foreach($pages->selet_options as $option){
echo "<option value='$option->name'>$option->title</option>";
}
echo "</select>";
Other ways would be to have a textarea and each new line render as an option. Then the code would be like this:
in optionstext field:
Option1
Option2
Option3
echo "<select name='myoptions'>";
foreach(explode("\n",$page->optionstext) as $option){
echo "<option value='$option'>$option</option>";
}
echo "</select>";
Soma, thanks, I do really want to use native PW functionality, I am just finding it really hard to get my head around the workflow in setting it all up.
Create template, add fields, disable editing of parent - I know it's like this at the beginning for everybody probably, but my head's in a spin!
There's lots of great documentation in the forums but the one thing I think is lacking is a real walkthrough - as much to see seasoned users' workflows as the code itself.