Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Date Validation against Token

  • philiporeilly
  • philiporeilly's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 weeks ago #159348 by philiporeilly
Date Validation against Token was created by philiporeilly
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!
The topic has been locked.
  • philiporeilly
  • philiporeilly's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 weeks ago #159444 by philiporeilly
Replied by philiporeilly on 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
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose