G-Node / tonic

Framework for building services that interact with GIN
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Handle checkbox groups correctly #23

Closed achilleas-k closed 3 years ago

achilleas-k commented 3 years ago

A fieldset of checkboxes is retrieved as a slice of strings, one for each checked option. The form processing function only takes the first value. This should be handled somehow.

The values are sent to the post action as a map of string -> string, so this needs to be adapted somehow. Some ideas: