How to edit the caption above the language selection box | XM Community
Skip to main content
Solved

How to edit the caption above the language selection box

  • August 17, 2023
  • 4 replies
  • 58 views

Forum|alt.badge.img+1

The defualt language selection box has the word “Language” above it, which is switched between different languages each time a language option is selected.

How do i edit that word “Language”? I would like it to be bilingual. For example, ”語言 Language”, shown bilingually accordinlg to the existing language options.

Your help will be much appreciated. Many thanks! 

Best answer by TomG

@lau_bee,

Use this in the Survey Header (Look & Feel → General → Header (edit) → <> (source)) so that it applies to every page in the survey:

<script>
Qualtrics.SurveyEngine.addOnload(function() {
document.getElementById("language-selector-label").innerHTML = "語言 Language";
});
</script>

 

4 replies

Forum|alt.badge.img+12
  • QPN Level 3 ●●●
  • 38 replies
  • August 17, 2023

load this page normally in preview mode.

view source to get the element id of text “Language”

using Javascript, onload function update the text using document.getElementById.innerHTML = “New text”.


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • 2 replies
  • August 22, 2023

load this page normally in preview mode.

view source to get the element id of text “Language”

using Javascript, onload function update the text using document.getElementById.innerHTML = “New text”.

Thank you so much, Imran_Ansari! I am a novice-- I have been looking at other posts hoping to find a way to use the command you suggested but it was without success. Could you kindly give me more pointers please? Like, where do i put that line on the layout editing page of Qualtrics? Thank you so mcuh. I really appreciat that. 


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6084 replies
  • Answer
  • August 22, 2023

@lau_bee,

Use this in the Survey Header (Look & Feel → General → Header (edit) → <> (source)) so that it applies to every page in the survey:

<script>
Qualtrics.SurveyEngine.addOnload(function() {
document.getElementById("language-selector-label").innerHTML = "語言 Language";
});
</script>

 


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • 2 replies
  • August 23, 2023

@lau_bee,

Use this in the Survey Header (Look & Feel → General → Header (edit) → <> (source)) so that it applies to every page in the survey:

<script>
Qualtrics.SurveyEngine.addOnload(function() {
document.getElementById("language-selector-label").innerHTML = "語言 Language";
});
</script>

 

Thank you so much! Becuase of your help, I have managed to get it done. Thank you.