Hello community, I included a custom javascript in my survey to get the local date and time when my respondents load the survey page. The logic flow I set in the survey then used these variables in the javascript as embedded data to decide which page to display. The codes work like a charm only with Chrome on my mac. _However, it didn't work on safari on mac nor safari/chrome on my iPhone/iPad._ Below is the script I included in my survey: var d = new Date(); Qualtrics.SurveyEngine.setEmbeddedData("hour", d.getHours()); var start = new Date(2019-3-3), end = new Date(), diff = new Date(end - start), days = Math.floor (diff/1000/60/60/24); Qualtrics.SurveyEngine.setEmbeddedData('day',days); Any thoughts why such an issue, and how I can make it to work across browsers and devices? Thanks!
I would like to get the current time of my participants based on their time zone so that I can use "branches" in survey flow to direct them to different pages/blocks. I need some support in developing codes to do this. Thanks!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.