I've had some help from the forum, and I wanted to share my code. This allowed me to create a multiple choice question, auto select an answer, and hide the question's answers from the participants. (I just deleted the "question" field and put a space in so it would not display). NOTE: I had to select the choice to "Display answers in a random order" because this code does not include randomizing.The magic of this code is that instead of endless survey flow with the same blocks repeated several times each with different words for one little part, I could have one set that I put in piped choices for. I hope this serves someone well!This first bit of code allowed me to hide the answers. I did it this way because another way caused the question and answers to flash for a brief moment instead of never appearing:Qualtrics.SurveyEngine.addOnload(function () { this.getChoiceContainer().hide();});This next bit is what chose the answer for the participants automatically:Qualtrics.SurveyEng
I am trying to hide a question for all participants. This code is working, but it flashes the question for a fraction of a second (not ideal). Can anyone suggest code to make sure the question is fully hidden? I cannot use display logic because the question needs to actually occur - just out of the participants' view.Qualtrics.SurveyEngine.addOnReady(function () { var $this = jQuery(this.questionContainer); $this.hide(); //this line will hide the question for participants});
I would like to randomly choose a multiple choice answer for participants (like randomization). I will not be displaying this question to participants. My goal is to randomize without creating a dozen extra questions and excessive display logic. Hence, not wanting to use randomization and do extra survey flow work. This would allow me to be able to pipe the (randomly chosen) answer into the next questions.
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.