I managed I used this code. Posting below in case anyone come across the same problem and thanks to all who helped. var qid = this.questionId;for(var i=5;i
https://community.qualtrics.com/XMcommunity/discussion/comment/41284#Comment_41284Thanks seems to have worked perfectly. Thanks so much.
https://community.qualtrics.com/XMcommunity/discussion/comment/30206#Comment_30206rondev the code seems to work great but when I add it, it seems to apply to all questions not just the one I added it to (please refer to screenshot below).This is the code I have inputted solely in the above question: Qualtrics.SurveyEngine.addOnload(function(){ /*Place your JavaScript here to run when the page loads*/ for(var i=2;i
https://community.qualtrics.com/XMcommunity/discussion/comment/41212#Comment_41212malush1412 the code I am currently using is:Qualtrics.SurveyEngine.addOnload(function(){/*Place your JavaScript here to run when the page loads*/let all_radios = this.questionContainer.querySelectorAll(".q-radio");all_radios[3].hide(); all_radios[4].hide(); all_radios[5].hide(); all_radios[9].hide(); all_radios[10].hide(); all_radios[11].hide(); all_radios[15].hide(); all_radios[16].hide(); all_radios[17].hide(); all_radios[21].hide(); all_radios[22].hide(); all_radios[23].hide(); all_radios[27].hide(); all_radios[28].hide(); all_radios[29].hide(); all_radios[33].hide(); all_radios[34].hide(); all_radios[35].hide(); let all_inputs = this.questionContainer.querySelectorAll("input");all_inputs[3].disable();all_inputs[4].disable(); all_inputs[5].disable();all_inputs[9].disable(); all_inputs[10].disable(); all_inputs[11].disable(); all_inputs[15].disable(); all_inputs[16].disable(); all_inputs[17].disable(
nielsvanderweerdt malush1412 TomG The code I am currently using is:Qualtrics.SurveyEngine.addOnload(function(){/*Place your JavaScript here to run when the page loads*/let all_radios = this.questionContainer.querySelectorAll(".q-radio");all_radios[3].hide(); all_radios[4].hide(); all_radios[5].hide(); all_radios[9].hide(); all_radios[10].hide(); all_radios[11].hide(); all_radios[15].hide(); all_radios[16].hide(); all_radios[17].hide(); all_radios[21].hide(); all_radios[22].hide(); all_radios[23].hide(); all_radios[27].hide(); all_radios[28].hide(); all_radios[29].hide(); all_radios[33].hide(); all_radios[34].hide(); all_radios[35].hide(); let all_inputs = this.questionContainer.querySelectorAll("input");all_inputs[3].disable();all_inputs[4].disable(); all_inputs[5].disable();all_inputs[9].disable(); all_inputs[10].disable(); all_inputs[11].disable(); all_inputs[15].disable(); all_inputs[16].disable(); all_inputs[17].disable(); all_inputs[21].disable(); all_inputs[22].disable(); all_
The code I am currently using is: Qualtrics.SurveyEngine.addOnload(function(){ /*Place your JavaScript here to run when the page loads*/let all_radios = this.questionContainer.querySelectorAll(".q-radio");all_radios[3].hide(); all_radios[4].hide(); all_radios[5].hide(); all_radios[9].hide(); all_radios[10].hide(); all_radios[11].hide(); all_radios[15].hide(); all_radios[16].hide(); all_radios[17].hide(); all_radios[21].hide(); all_radios[22].hide(); all_radios[23].hide(); all_radios[27].hide(); all_radios[28].hide(); all_radios[29].hide(); all_radios[33].hide(); all_radios[34].hide(); all_radios[35].hide(); let all_inputs = this.questionContainer.querySelectorAll("input");all_inputs[3].disable(); all_inputs[4].disable(); all_inputs[5].disable(); all_inputs[9].disable(); all_inputs[10].disable(); all_inputs[11].disable(); all_inputs[15].disable(); all_inputs[16].disable(); all_inputs[17].disable(); all_inputs[21].disable(); all_inputs[22].disable(); all_inpu
malush1412 ahmedA may you please guide me further as to how this code was applied. I would like to remove the radio buttons for ranks 4 onwards (screenshot below). I have applied Ahmed's code. The program is recognising that I have used JavaScript but nothing has changed. Could you kindly guide me/ send me the code I need to paste into JavaScript. Thanks
nielsvanderweerdt may you please provide the entire code please. Not so sure in which part of the existing code (provided below) I should add in your code. This would be very helpful please. Also does this keep just 3 radio buttons irrelevant of the numbers of options I have? i.e. I can apply it to all my questions. Thanks in advanceQualtrics.SurveyEngine.addOnload(function(){ /*Place your JavaScript here to run when the page loads*/});Qualtrics.SurveyEngine.addOnReady(function(){ /*Place your JavaScript here to run when the page is fully displayed*/});Qualtrics.SurveyEngine.addOnUnload(function(){ /*Place your JavaScript here to run when the page is unloaded*/});
Customer support has helped me solve my problem. The survey must constantly be published.
Already have an account? Login
Enter your username or 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.