Display logic for birthday date | XM Community
Solved

Display logic for birthday date

  • 23 July 2023
  • 2 replies
  • 121 views

Userlevel 3
Badge +3

Hi everyone!

 

I have some questions on my survey that I only want them to appear to people who were born before 09/11/1983 (day, month, year). I tried to use “add display logic” butom in those questions but it´s not working correctly. I also tried to change the “birthday question” to some formats to see if any worked. Does someone have a sugestion?

Thank you!!
 

icon

Best answer by SaurabhPujare_Ugam 24 July 2023, 04:56

View original

2 replies

Userlevel 5
Badge +8

Why don’t you calculate age from that period of time using day, month & year and then add display logic using the number and skip if does not satisfy.

Userlevel 6
Badge +18

Hi @aribeiro,

I would first recommend you to find the difference between the 2 dates, i.e., current date and your target date, for which you can refer to link for further details.

And use the variable created through JS as a display logic.

Leave a Reply