Collection of Date of Birth/Use as variable

  • Russell Noble
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 2 months ago #89445 by Russell Noble
Collection of Date of Birth/Use as variable was created by Russell Noble
Client has a requirement to check the date of birth of registrants and then either not allow registration (<16) or allow registration but with a text warning display (16-18).

Looking through the forums a number of customers have asked about Date of Birth validation.

Wishlist:
1. Be able to collect a date as the date of birth.
2. Be able to test the value of the DoB against the event date (The event date needs to be made available to test against)

If anyone is interested I can share my custom solution which is inelegant but uses an ajax validation.

Please Log in or Create an account to join the conversation.

More
7 years 1 week ago #108203 by Andre Baust
Replied by Andre Baust on topic Collection of Date of Birth/Use as variable
Hello,
I am interested in your solution. Can you send me your solution?

Please Log in or Create an account to join the conversation.

  • Russell Noble
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 1 week ago #108206 by Russell Noble
Replied by Russell Noble on topic Collection of Date of Birth/Use as variable
Hi,
we setup a date field with the following validattion:

validate[required,custom[date],past[1998-11-13]]

Couldn't get the event date so had to be hard coded.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc