Hello,
If you’re using the Pro Version, You can customize the Booking Form Under Events > Forms Editor
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.
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.
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
did you already hooked into em_event_save_meta or em_event_save filter? for reference, this is located under classes/em-event.php