Events Made Easy Forums How do I … validate birthdate against minimum age at each event

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #62901
    Anonymous
    Inactive

    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?

    #62902
    Franky
    Keymaster

    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/

    #62905
    Anonymous
    Inactive

    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?

    #62906
    Anonymous
    Inactive

    I found it already out,

    eme_get_event_cf_answers($event[‘event_id’]);

    thanks for your time and support 😉

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top