Thirtybees 1.10 and Prestashop 1.6
Kakkupaperi's solution adapted to my <TEXTAREA></TEXTAREA> form, except that the orders got mixed-up; it could order no selection or the previous customers' selection and a javascript expert could probably solve that problem.
My change is to use <SELECT>
<OPTION>choose
<OPTION>first
<OPTION>second</SELECT>
Onchange is replaced by Onselect
It might do for hakunamataza.com above.
The default system for making a choice compulsory works on this form; if you click the box of the customization page in the backoffice, it produces a popup with some words to translate if you choose "choose", but there may be quicker prettier ways of doing it.
<select onselect="javascript:this.form=''" " name="textField{$field.id_customization_field}" class="form-control customization_block_input" id="textField{$customizationField}" rows="3" cols="20">{strip} {if isset($textFields.$key)} {$textFields.$key|stripslashes} {/if} {/strip} <option>choose</option> <option>first</option> <option>second</option> <option>third</option> <option>fourth</option> </select> </li>
- The {strip}{/strip} bit is copied but probably not used.
- ID="textfield looks wrong as this is a select field, but the form worked on the first one or two tries.
- The rows and columns make this a very wide select form. It could be more intuitive if it looked the same as other select forms on the same theme.
The customization is limited to selections, just like an attribute, but with no stock control, so if you want stock control for one attribute and not for another, this is a solution.
If anyone spots obvious mistakes or other solutions, please post.