Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    If you’re using the Pro Version, You can customize the Booking Form Under Events > Forms Editor

    Thread Starter dionadk

    (@dionadk)

    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

    (@dionadk)

    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 6 years, 10 months ago by dionadk.
    Thread Starter dionadk

    (@dionadk)

    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

    (@dionadk)

    Any thoughts on this???

    Plugin Support angelo_nwl

    (@angelo_nwl)

    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.