Hello! I'm trying to add java script to descriptive text questions so that participants can press one of two keys (1 or 0) and the survey will automatically progress to the next question and the key that they pressed (1 or 0) is reported in the exported data file. With my current script (image attached) I have found that pressing 1 or 0 does move the participant to the next question (yay!) However, I'm having trouble with the exported data. Originally, the questions that I added script to (Q3 and Q6) were both descriptive text questions. In this data file, there was no column for Q3 or Q6. Then, I tried changing Q3 to a multiple choice question and retaking the survey. In this data file, there was still no column for Q6, but there was a column for Q3. However, there was only Q3 data recorded for the 3 previous attempts (in which Q3 was a descriptive text question) and there was no Q3 data for the most recent attempt (in which Q3 was a multiple choice question). (I have attached thes
Hello! For a project I'm working on, we need to run Java script on over 300 multiple choice questions (each of which is in a separate block). Is there a way to apply our script to multiple choice questions in bulk without copy and pasting our code into each individual question? Current script: Qualtrics.SurveyEngine.addOnReady(function(){ jQuery('body').keydown( function( event ) { switch (event.which) { case 49: // the 1 key event.preventDefault(); jQuery(jQuery('span.LabelWrapper label')[0]).click() jQuery('#NextButton').click(); break; case 48: // the 0 key event.preventDefault(); jQuery(jQuery('span.LabelWrapper label')[1]).click() jQuery('#NextButton').click(); break;
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.