Customizing Date of Birth

I’m not sure why you’re getting the error. I’ll send that on to QA to evaluate.

Now, about the button being enabled/disabled… You are correct, you probably just want to leave it enabled. I had set up the code to enable or disable the Button depending on the user’s age as a way to see if the user’s age was being calculated correctly. What you probably want to do on your site is to allow the Button, but return a “not old enough” flag when closing the Lightbox to redirect to a page informating the user that they are not old enough to view the contents of the site.

I’m just describing one scenario. You can of course use the user’s age to perform whatever action you want that would effectively block the user from the site.

Good luck

Hello Yisreal I want it where they user wont be able to view the site if they are under 18. I am unable create that since I am not sure how to write this code. Is it possible for you to help me make this work.

We are unable to provide full code solutions. Wix provides many resources to help users learn how to get the most out of Corvid. We encourage users to take advantage of these resources which include video tutorials, full app examples (which can be loaded into the user’s editor), API documentation, and a wealth of articles describing a wide range of topics - from beginner to advance.

You may want to check out the WixArena - it’s a hub where you can look for Corvid (and other) experts for hire.

ok So I can hire someone to have it done?