Title: Add a checkbox custom attribute
Last modified: May 7, 2018

---

# Add a checkbox custom attribute

 *  Resolved [dionadk](https://wordpress.org/support/users/dionadk/)
 * (@dionadk)
 * [8 years ago](https://wordpress.org/support/topic/add-a-checkbox-custom-attribute/)
 * I need to add a checkbox on the event submission form.

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

 *  [Tim Vergara](https://wordpress.org/support/users/tim01/)
 * (@tim01)
 * [8 years ago](https://wordpress.org/support/topic/add-a-checkbox-custom-attribute/#post-10258235)
 * Hello,
 * If you’re using the Pro Version, You can customize the Booking Form Under Events
   > Forms Editor
 *  Thread Starter [dionadk](https://wordpress.org/support/users/dionadk/)
 * (@dionadk)
 * [8 years ago](https://wordpress.org/support/topic/add-a-checkbox-custom-attribute/#post-10258627)
 * Thanks for replying. I want to add it to the Event Submission form. I was able
   to add a checkbox condition (just like a custom attribute with options)in code.
   It is visible on the front end submission form but not on the admin dashboard.
 *  Thread Starter [dionadk](https://wordpress.org/support/users/dionadk/)
 * (@dionadk)
 * [8 years ago](https://wordpress.org/support/topic/add-a-checkbox-custom-attribute/#post-10259220)
 * If I tick the checkbox on the frontend it gets saved as 1 in the admin dashboard(
   Edit Event). But if I uncheck the box on front end the value does’nt get updated
   in the admin dashboard. Can you help me to figure out whats happening here.
 * This is the code I added to the attributes-public.php file
 * <input type=”checkbox” name=”em_attributes[<?php echo $name ?>]” value=”1″ <?
   php if(!empty($EM_Event->event_attributes[$name])) echo ‘checked=”checked”‘; ?
   > />
    -  This reply was modified 8 years ago by [dionadk](https://wordpress.org/support/users/dionadk/).
 *  Thread Starter [dionadk](https://wordpress.org/support/users/dionadk/)
 * (@dionadk)
 * [8 years ago](https://wordpress.org/support/topic/add-a-checkbox-custom-attribute/#post-10259292)
 * Ok An update on this post. I was able to show the check box in the admin dashboard
   buy adding code to the attributes.php file. But I still have issue updating the
   checkbox in the admin area as said in the above message. Thanks
 *  Thread Starter [dionadk](https://wordpress.org/support/users/dionadk/)
 * (@dionadk)
 * [8 years ago](https://wordpress.org/support/topic/add-a-checkbox-custom-attribute/#post-10266599)
 * Any thoughts on this???
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/add-a-checkbox-custom-attribute/#post-10302448)
 * did you already hooked into em_event_save_meta or em_event_save filter? for reference,
   this is located under classes/em-event.php

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

The topic ‘Add a checkbox custom attribute’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [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/)

 * 6 replies
 * 3 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/add-a-checkbox-custom-attribute/#post-10302448)
 * Status: resolved