Date Validation against Token

More
1 month 1 week ago #159348 by philiporeilly
philiporeilly created the topic: Date Validation against Token
I'm trying to show a section of a survey once the user has validated their date of birth against a date in the token table (attribute_5)

The date formats for both the input and token field are yyyy-mm-dd but the conditions are not working to show question if date input = date in token table.

I've tried also using the .shown in regular expressions to only use yyyy-mm-dd without HH:MM:SS but not sure if I'm doing this right either.


Would anyone have any suggestions or a RegExp that will verify a date input to a date in the token table?

Thanks in advance!

Please Log in to join the conversation.

More
1 month 1 week ago #159444 by philiporeilly
philiporeilly replied the topic: Date Validation against Token
Figured out that the token needs to be in the format yyyy-mm-dd 00:00

e.g. If Date of Birth is 20th December 1990, token needs to be 1990-12-20 00:00
The following user(s) said Thank You: tpartner

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!