Multi-check field#140
Conversation
|
I think the correct way to do this would be to use a group. Something like this? |
|
Turns out there is a bug with the group not displaying. This PR should fix it if you can try it for me. The group field display method was not handling empty fields values in the same way as the standard display method. |
|
Thanks, Matthew, I'll give that a try tonight Chris |
|
Thanks, Matthew. That seems to work much better now! One thing you're missing though, group fields don't have a unique identifier (class or id), which therefore makes them impossible to uniquely target with jQuery or CSS unless you know the field number. So I'd suggest changing: to Each checkbox is uniquely id'ed but that makes it more hassle to code - i can't just grab all the inputs as one object in jQuery. Thanks Chris |
|
I think adding an ID attribute usuing the field ID is a good idea - but I'm going to merge this and open a new pull request for the ID |
|
thanks |

It would be useful if the check field supported multiple checks.
I tried using a group field but it didn't really work easily. I also tried creating one but it didn't save, so I went back to using a multichoice select field.