NPellet / visualizer

Other
42 stars 24 forks source link

In from twig the multiline of select is not supported #1027

Closed lpatiny closed 7 years ago

lpatiny commented 7 years ago

In the template of the form 'twig' module you can specify multiple select option

However if you select many lines the variable out will not contain an array but only one of the item. Would be nice to have all of them ...

<form>
<select size=4 multiple name='level'>
    <option value='100'>Simple</option>
    <option value='200'>Moyen</option>
    <option value='300'>Difficile</option>
</select>
</form>
stropitek commented 7 years ago

It would probably make sense for a long list so that selecting a range is easy. But for a small list I think checkboxes are much more intuitive

lpatiny commented 7 years ago

Yes seems indeed checkbox is really a good alternative. And will use it so this ticket is not useful for me for the moment. It may be closed for me.