Hi i need to find a way to turn a coma separated list within a custom field (text-area) to output into a set of form parameters and options.
Currently I am using pixel and tonics list field type. My client does not like having to enter one option at a time and prefers a simple list to mange. She has already created the list and wants to cut and paste them into the textarea. A list would look like so:
wine, magenta, purple, blue, teal, turquoise, green, olive, apple, rust, chocolateWithin my template outputs to:
<option value="wine">wine</option>
<option value="magenta">magenta</option>
<option value="purple">purple</option>
<option value="blue">blue</option>
<option value="teal">teal</option>
<option value="turquoise">turquoise</option>
<option value="green">green</option>
<option value="olive">olive</option>
<option value="apple">apple</option>
<option value="rust">rust</option>
<option value="chocolate">chocolate</option>
I think there is a way to do this with the defalut install of EE 2. I am unaware of how to do such processing.
My current solution is to use the (pixel and tonic) List field type. My template code looks like this:
</select> <input type="hidden" name="on1" value="Color"> <select name="os1">
<option value="">
-- Choose a color --
</option>
{product_colors}
<option value="{item}">
{item}
</option>
{/product_colors}
Any help would be greatly appreciated.
Thanks,
Shan Ricciardi