Hello!
I have made a two-part survey, where the second survey must be completed 4-5 days after completion of the original survey. If the participant comes back early, I want to show a message saying 'Too early!', and if they're too late 'Too late!'. If they're on time, the survey continues.
In the first survey, I create embedded data of the current date, and the next 6 days, respectively:
Day0 = ${date://CurrentDate/DM}
Day1 = ${date://OtherDate/DM/+1%20day}
...
Day6 = ${date://OtherDate/DM/+6%20day}
These are piped to the second survey, where the ppt authenticates using a LoginID, and an embedded data field, 'Today', is created: Day0 = ${date://CurrentDate/DM}
Then I have three branches of logic, in this order.
1) If 'Today' is equal to or less than 'Day 3' then "Too early!"
2) If 'Today' is equal to 'Day 4' OR 'Day 5 ' then continue to survey.
3) If 'Today' is equal or greater than 'Day 6' then "Too late!"
At the moment, all my participants are being sent to "Too late!" and I'm not sure why?All the ED fields seem to be piping perfectly from one study to another.
Some ideas:
- Could it be due to the dates from survey 1 are saved as strings, while the 'Today' field is a date?
- Or perhaps because I've used the verbose 'Day Month' format, rather than the mm/dd/yyyy format for the dates? Perhaps greater/less than calculations don't work on this?
If anyone can shed light on this, I would hugely appreciate it!
Thanks in advance :)