• Resolved facemail4me

    (@facemail4me)


    Hi,
    i am useing the free version.
    And it work fine. Thank you for coding.
    But now i want to add the bithday field at the register form.
    But it opens the picker and it needs a long time to add the date.
    Is it possible to create a normale Date field where the user can type it by own at the free version?

    Greeting Elias

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @facemail4me,

    I’m afraid we use only date picker dialog for dates, alternatively, you can use text box or number fields.

    Regards.

    Thread Starter facemail4me

    (@facemail4me)

    hi okay,

    i used now a text field with a costum validation
    If someone wants the code:
    add_action(‘um_submit_form_errors_hook_’,’um_custom_validate_date’, 999, 1);
    function um_custom_validate_date( $args ) {
    global $ultimatemember;
    $d = DateTime::createFromFormat(‘d.m.Y’, $args[‘Fieldname’]);
    if ( $d === false) {
    $ultimatemember -> form ->
    add_error(‘Fieldname’,’erorrmessage’);
    }
    }

    • This reply was modified 8 years, 8 months ago by facemail4me.
    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @facemail4me,

    Thanks for letting us know.
    I’m glad that you’ve found the solution.

    Regards.

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

The topic ‘Date without picker’ is closed to new replies.