We want to set expiration in an anonymous survey link by calculating the Date wherein the survey was created (we have embedded data for this already) and the Date wherein the survey was taken.
- In the survey flow, we can use this code to get the current date, when the survey is being taken in Date format: ${date://CurrentDate/c}
- Then in the survey flow, I can also replicate the CreationDate of survey being passed on thru query strings, so I can change this to Date format and be compatible with the Current Date
- Then I will need to use Javascript to calculate the difference between the two dates. Once I get the difference, I can use branch logic to end the survey if the time difference is more than 24h.
Questions:
- Would you know which part in the Qualtrics account we can set-up this Javascript custom code calculation?
- Also, do we have a specific formula we can follow so Qualtrics can also recognize this calculation?