Multiple checkbox values

QuestionsMultiple checkbox values
Matt asked 10 years ago

I have a column where I want the type to be checkboxes.
So for example:
Please select your favorite sports:
Football
Basketball
Rugby
Hockey
Tennis
Golf
Baseball
Lacrosse
Polo

I want the actual values checked stored in the column. What is the setting I can use and how do I show the values entered on the edit dialog form? So if changes or more selections need to be made those that have been selected will be checked on the form.
Thanks!

4 Answers
Abu Ghufran answered 10 years ago

Hello,

It's not exactly supported.
Nearest solution could be to use multi select dropdown.

// to enable multiselect option
$col["edittype"] = "select";
$col["editoptions"]["multiple"] = "multiple";

You can also replace multi-select dropdown to select2 tagging control.
http://easycaptures.com/fs/uploaded/801/5587551854.png

Matt answered 10 years ago

Can you provide an example of the select2 tagging please? That looks like a good option.

Matt answered 10 years ago

That works, thank you!

Your Answer

12 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?