Hi TomG, thanks for the revert. Basically, I want to disable “submit survey” button if “snooze” option is selected as one of the answer choices for any of the questions. So, we want to let the survey taker know to unsnooze the answer choice (i.e., unselect snooze option) and select any other answer choice (other than snooze) in order to submit the survey. The survey should not be allowed to submit if someone has selected “snooze” option. Was I able to make myself clear ? any suggestions ?
Hi Vincent, just out of curiosity, can you also let me know if we were to accomplish this same thing using JavaScript, then where do we put the below code in the intercept? It would be super helpful if you can share a screenshot like you shared previously for urlRegex. const currentURL = window.location.href; let extractedNumber = currentURL.match(/(\d{13,})/); Qualtrics.SurveyEngine.setEmbeddedData('currentURL', currentURL); Qualtrics.SurveyEngine.setEmbeddedData('extractedNumber', extractedNumber[1]);
Thanks a ton, Vincent. It worked perfectly well. Thanks a lot once again. Happy Learning :)
Hi Vincent, I tried putting this code in JavaScript section of the question as well as the intercept, but it didn’t work. Can you please let me know where do I put this code and how do I pull the number as embedded data in the data and analysis section?
@Deepak Hey Deepak, thanks a lot, this was helpful. It worked well :)
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.