I programmed my survey so that the enter key advances survey-takers through the questions.
I only had to use this JavaScript on one question, and it works for the whole survey.
However, I need to remove the functionality of this code for one of the questions. Any idea on how to clear the Event.observe() function? Note I will turn this functionality back on immediately after this question.
Survey Structure:
Page 1 (use enter key to advance)
Page 2 (use enter key to advance)
Page 3 (use enter key to advance)
Page 4 (other functionality specified to advance)
Page 5 (use enter key to advance)
Event.observe(document, 'keydown', function keydownCallback(e){
if (e.keyCode == 13)
{
that.clickNextButton();
}
})
Adding this to the unload function of Page 3 did not fix the problem:
document.onkeydown = function(event) {}
Neither did this:
Event.observe(document, 'keydown', function keydownCallback(e){
if (e.keyCode == 13)
{
}
})
How to clear keydown function/functionality of a keypress?
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
