How can I calculate and check for age? | XM Community
Skip to main content
Solved

How can I calculate and check for age?

  • January 14, 2019
  • 1 reply
  • 365 views

Hi to everybody, I never used Javascript but I think I will need it here. Briefly, I'm going to ask in a survey the date of the test and the birthday and then what I would like to do is: * calculate the age in years, month and day at the date of the test; * check if the age is between age1 and age2 as needed; * put a warning that says that the person should be between age1 and age2. Is it possible?

Best answer by bstrahin

This post might give you a start and some users to reach out to: https://www.qualtrics.com/community/discussion/1397/javascript-to-calculate-users-age-based-on-dob-check-age-eligibility-provide-validation-alert
View original

1 reply

bstrahin
Level 6 ●●●●●●
Forum|alt.badge.img+38
  • Level 6 ●●●●●●
  • 639 replies
  • Answer
  • January 14, 2019
This post might give you a start and some users to reach out to: https://www.qualtrics.com/community/discussion/1397/javascript-to-calculate-users-age-based-on-dob-check-age-eligibility-provide-validation-alert

Leave a Reply