Hello,
In a form I want that the user select one color among 13 predefined colors.
How do do it with a color picker or colored combo list or other ?
Thank you,
Christophe
In your form add a color input field
Then set an attribute called list with the value of presets (this can be called whatever you like)
Then add some custom code to your page with the 13 colors you require as options:
<datalist id="presets">
<option>#ff0000</option>/>
<option>#00ff00</option>
<option>#0000ff</option>
</datalist>
Make sure the id is the same name as your ‘list’ value