Calculating age based on DOB embedded data & current date | XM Community
Skip to main content
Question

Calculating age based on DOB embedded data & current date

  • September 16, 2019
  • 2 replies
  • 104 views

Forum|alt.badge.img
I want to set up a branch in the survey flow where a certain block only shows if participants are 18 at the time of starting the survey. I have DOB as an embedded data. How would I set up the age calculation for current date minus DOB?

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • September 16, 2019
See this comment: https://www.qualtrics.com/community/discussion/comment/6695#Comment_6695

Forum|alt.badge.img
  • Author
  • September 16, 2019
Thank you. Where do you add the javascript code?