Datetime Picker value validation

Support MB Builder Datetime Picker value validationResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41741
    ReisecouponReisecoupon
    Participant

    Hi,

    is it possible to add in the datetime picker validation that does allow only date which is later then the today date?

    Thank you!

    #41755
    PeterPeter
    Moderator

    Hello,

    It's impossible. You need to register the custom field with code and use a PHP function to get the current date then assign it to the setting minDate. Please read more on the documentation
    https://api.jqueryui.com/datepicker/#option-minDate
    https://docs.metabox.io/fields/date/

    #41765
    ReisecouponReisecoupon
    Participant

    Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.