Getting rid of language changing option in survey | XM Community
Skip to main content
I really don't want my participants to be able to switch languages during the questionnaire thanks to the change language bar that appears...Apparently it's possible to code this out...I don't even know how to start though...Would anybody have some tips ?
Add this to Add Custom CSS under Look & Feel/Advanced:

```

.LanguageSelectorContainer {display:none}

```
It doesn't seem to be working...Could there be something I am missing ?
You've done something wrong. I've made my original post a bit more specific.
Thanks yes I had! Thank you so much!
Dear TomG, I have a similar problem with one modification. I want to permit survey participants to select their language of choice in the first question, but not change the language in subsequent questions. Do you have a similar code that would keep the Language Selector Container on Q1 but remove it elsewhere? Appreciate any advice you might have!
@curriewr,



You could add JS to a question on the first page to un-hide the Language Selector. I think this will work:

```

jQuery(".LanguageSelectorContainer").show();

```

Hi. If I have my survey done in English and translated to Chinese and I only want the Chinese translated survey to appear for participants without them being able to choose between Eng & Chinese, how should the coding look like?


Good morning, I am having no luck pasting .LanguageSelectorContainer {display:none}. Is this still the correct way to be removing the language selection box?


https://community.qualtrics.com/XMcommunity/discussion/comment/39213#Comment_39213Yes. It goes in Look & Feel / Style / Custom CSS.


Hi there, is there a way to hide the language menu for only a selection of people based on metadata? For example, I want those in Germany to not be able to switch languages.


https://community.qualtrics.com/XMcommunity/discussion/comment/44980#Comment_44980You can use JS. If you have an embedded field named cc with the country code. Then:
if("${e://Field/cc}"=="DE") {
jQuery(".LanguageSelectorContainer").hide();
}


https://community.qualtrics.com/XMcommunity/discussion/comment/44981#Comment_44981Does this work if I don't have a country code embedded data field but i do have "country"? The below doesn't seem to be working but I think it may be user error.

if("${e://Field/Country}"=="Germany") {
 jQuery(".LanguageSelectorContainer").hide();
}


https://community.qualtrics.com/XMcommunity/discussion/comment/44984#Comment_44984Actually.. is it that I am not putting in the right place? I have this under look and feel style custom CSS


https://community.qualtrics.com/XMcommunity/discussion/comment/44985#Comment_44985You'll need to put it in the survey header (Look & Feel - General - Header - Edit (source mode <>):


https://community.qualtrics.com/XMcommunity/discussion/comment/44986#Comment_44986Thank you so much! Any idea why this wouldn't be working? Does it matter that we are using SSO to authenticate? I put it in the header in the source mode.


https://community.qualtrics.com/XMcommunity/discussion/comment/44987#Comment_44987SSO shouldn't matter. If you haven't done something wrong, as long as country is set to Germany it should work. Example of it working:
country=Germany:
https://marketinview.qualtrics.com/jfe/preview/SV_bCJ5w8ra1ahU6nI?Q_CHL=preview&Q_SurveyVersionID=current&country=Germany&Q_lang=DE
country!=Germany:
https://marketinview.qualtrics.com/jfe/preview/SV_bCJ5w8ra1ahU6nI?Q_CHL=preview&Q_SurveyVersionID=current


Leave a Reply