Forum Academy Marketplace Showcase Pricing Features

Listing text labels from checked boxes in database

On my page, I have a form with 17 checkboxes (each with a text label) along with other elements.

In my database, rather than having 17 fields collecting yes/no values, I want to have 1 field that lists the text labels of all the checkboxes that were selected. How can I accomplish this?

E.g., if the user checks the boxes for “Pizza,” " Burger," and “Sandwich” and presses the submit button, my database should have the entry:

Pizza Burger Sandwich

Thanks for your help in advance.

Create the item and check the “it’s a list” option.
Example -
item 1 - food (text)
Item 2 - user_pref_food (list of foods)