• Resolved kosmosuitgevers

    (@kosmosuitgevers)


    On my checkout page, I’m asking buyers to add their birthday. But since the ‘Date’ field could be used for all dates (for instance preferred start date of a subscription), it is possible for buyers to add future dates. With birthdates, that doesn’t make sense. Is there a way how I can prevent people of filling in future dates?

    Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support sebastianrybacki

    (@sebastianrybacki)

    Hello,

    Thank you for reaching out to us!

    Sure, to prevent customers from selecting future dates for the birthday field, you can follow these steps:

    1. Go to WooCommerceCheckout Fields.
    2. Edit the settings of the date field you added.
    3. Navigate to the Advanced tab of that field.
    4. In the Days after field, set the value to 0.
    5. Save the changes.

    This will restrict the selection of future dates for the birthday field. I’ve also attached a screenshot of the settings for your reference:
    https://snipboard.io/qyvdB4.jpg

    Please let me know if you need any further assistance!

    Best regards,

    Thread Starter kosmosuitgevers

    (@kosmosuitgevers)

    Thank you very much for your answer and clear guide on how to change this! I’ve been able to make those adjustments, everything is working as it should. Thanks again!

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

The topic ‘Date – no future data allowed’ is closed to new replies.