hi, I am using Qualtrics to make a survey, and one of the question is to select the year…
Jump to turn (6)
- 1hi, I am using Qualtrics to make a survey, and one of the question is to select
- 2it shows like "Invalid JavaScript! You cannot save until you fix all errors: Une
- 3nothing changed
- 4The original code is "Qualtrics.SurveyEngine.addOnload(function() { //Set years
- 5there is no question id, could you give me another revised code?
- 6it shows Invalid JavaScript! You cannot save until you fix all errors: Unexpecte
- User
hi, I am using Qualtrics to make a survey, and one of the question is to select the year and month of the participants' year and month of birth. I use the calendar and date in the demographics from the Qualtrics library, and the default options of the year ranges from 1900 to 2049. I would like to change the year range from 1990 to 2023, and the javascript of this question goes like that: "Qualtrics.SurveyEngine.addOnload(function() {
//Set years you would like to have available
var yearFirst = 1990; //Min 1990 var yearLast = 2023; //Max 2023
//This all remains unchanged var qid=this.questionId; var mo=document.getElementsByName('QR~'+qid+'#2'+qid+'#1~1')[0];