- This topic has 3 replies, 2 voices, and was last updated 3 years, 4 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › validate birthdate against minimum age at each event
I have a field for the date of birth in the registration form. There should be a minimum age for each event, otherwise the booking may not be sent.
I thought of a custom-field in the event called “due date”, then you could check the date of birth >= the “due date” in the form. if the birthdate is smaller than the due date, the user should get an error-message when he presses the submit-button
how would that be possible?
For testing custom field values, see the filter eme_eval_booking_form_post_filter at https://www.e-dynamics.be/wordpress/category/documentation/12-hooks-and-filters/
ok, thanks a lot….
one more question… How do I get access in the php code to my custom field, which I saved with id=’11’ and name=’Stichtag’ at each event?
I found it already out,
eme_get_event_cf_answers($event[‘event_id’]);
thanks for your time and support 😉