Title: Making Attribute Fields a Checkbox
Last modified: May 15, 2020

---

# Making Attribute Fields a Checkbox

 *  Resolved [Ian Sackofwits](https://wordpress.org/support/users/plantprogrammer/)
 * (@plantprogrammer)
 * [6 years ago](https://wordpress.org/support/topic/making-attribute-fields-a-checkbox/)
 * Hi, I had a question concerning attributes.
 * So I saw:
 * >  #_ATT{Field Label}{Default Option|Option 1|Option 2|etc.} – Select from one
   > of the options, seperated by a pipe | character. If not defined, the first 
   > option is considered the default option.
 * And I noticed that from the front-end on the event submission form that an attribute
   was using a drop-down selection box, but this only allows one option to be selected.
   Is there a way for me to make this a checkbox instead?
 * I currently have `#_ATT{age group}{All Ages|0-1|1-2|2-5|5-12|12+}` for an event,
   and I would like the user to be able to select multiple options, as some events
   may be applicable for multiple age groups.
 * I know some PHP, so even if you could direct me to the file(s) to modify, I would
   appreciate that. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [6 years ago](https://wordpress.org/support/topic/making-attribute-fields-a-checkbox/#post-12863623)
 * you can modify template file at events-manager/templates/forms/event/attributes-
   public.php
 * to use templates: [http://wp-events-plugin.com/documentation/using-template-files/](http://wp-events-plugin.com/documentation/using-template-files/)
 * eg. wp-content/themes/Your Theme/plugins/events-manager/forms/event/attributes-
   public.php
 *  Thread Starter [Ian Sackofwits](https://wordpress.org/support/users/plantprogrammer/)
 * (@plantprogrammer)
 * [6 years ago](https://wordpress.org/support/topic/making-attribute-fields-a-checkbox/#post-12866012)
 * Thanks for responding, [@angelo_nwl](https://wordpress.org/support/users/angelo_nwl/).
 * I managed to modify the front-end attribute to allow a multiple selection through
   appending a `multiple` attribute to the `select` tag.
 * The thing is, though, after submitting the form with multiple values, though,
   the back-end only displays one value as selected. (I also appended the `multiple`
   attribute to this as well with the “attributes” template.)
 * Is there another template file that I would be able to modify to solve the issue?
    -  This reply was modified 6 years ago by [Ian Sackofwits](https://wordpress.org/support/users/plantprogrammer/).
 *  Thread Starter [Ian Sackofwits](https://wordpress.org/support/users/plantprogrammer/)
 * (@plantprogrammer)
 * [6 years ago](https://wordpress.org/support/topic/making-attribute-fields-a-checkbox/#post-12866986)
 * Hmmm… I’m thinking now of playing around `apply_filters('em_get_attributes_'.
   $attribute, $new_values, $attribute, $matches);` .
 * (don’t know what the DDM refers to in `//We also get a list of attribute names
   and create a ddm list (since placeholders are fixed)`)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Making Attribute Fields a Checkbox’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [attributes](https://wordpress.org/support/topic-tag/attributes/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ian Sackofwits](https://wordpress.org/support/users/plantprogrammer/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/making-attribute-fields-a-checkbox/#post-12866986)
 * Status: resolved