Created
September 11, 2024 13:39
-
-
Save marketinview/48187d5251ac0fedf555cbd0f2ac7c7a to your computer and use it in GitHub Desktop.
Qualtrics: Select Language with Multiple Choice. Hides the language drop down selector and has the respondent pick language in a Multiple Choice question. Specify language codes in choice html. #qualtrics #js #jq #mc #language #translate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.LanguageSelectorContainer, span.langCode { display:none; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
English<span class="langCode">EN</span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Qualtrics.SurveyEngine.addOnload(function() { | |
jQuery("#"+this.questionId+" input[type=radio]").click(function() { | |
jQuery("#Q_lang").val(jQuery(this).closest("li").find("span.langCode").text()).trigger('change'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment