@bjonasch If you just want to preselect one of the language options when the survey is started, you can place this JavaScript for the first question and choose the relevant language code:
Qualtrics.SurveyEngine.addOnload(function() { /*Place your JavaScript here to run when the page loads*/ document.getElementById('Q_lang').value = 'DE'; });
If you want to actually ask a question “Which language do you prefer?”, then you would need some different logic. But in this case, the language dropdown should probably not be shown?
Exactly, the language dropdown should not show and the language should be set by that question.
The survey should pre-select the language of the browser of the respondent when started and then he could change it in the question if needed. No need for the language dropdown.
Exactly, the language dropdown should not show and the language should be set by that question.
The survey should pre-select the language of the browser of the respondent when started and then he could change it in the question if needed. No need for the language dropdown.
Thank you!
This should be the expected behaviour as mentioned here.
Hi! I added the code from the Github link to my survey and it works like a charm. However, I would like to use a dropdown question instead of a list question. How can I adapt the code so that it works with a dropdown question? @TomG