2 language survey: how to change language drop down to a simple button? | XM Community
Question

2 language survey: how to change language drop down to a simple button?

  • 6 April 2020
  • 4 replies
  • 267 views

Hello,
I have a simple 2 language survey (EN / AR) and was wondering if it was possible to replace the language drop-down by a button?
Such that if the respondent is answering the EN survey instead of showing "English" in the language drop-down it would directly state "عربي" and when the user clicks on it he is immediately redirected to the AR survey. Is this possible?
Otherwise, would it be possible to show the other language as default in the drop-down? So, if the respondent is answering the EN survey the language drop-down would show "عربي" instead of English...
Thanks a lot!
Ila



4 replies

Userlevel 7
Badge +27

You would need to write JavaScript to do this.

Userlevel 7
Badge +22

Yes, you can use JS to hide dropdown and add a button instead, on click of this button you can change the drop down selection.

Thank you very much for your comments!
I have looked at another thread written by TomG https://www.qualtrics.com/community/discussion/1939/survey-language-setting-from-survey-question and adapted it... Now it only displays the other language but the link is not working. What I'm I missing?



FYI: if you are facing the same issue here is the best code I could write to solve this issue... It creates a button to switch between the two languages instead of having the drop-down. Small issue: button has the same wording in both translations.
To create a button that switches between the two languages with JS in the Look & Feel -> General -> header


In order to hide the language drop-down: https://www.qualtrics.com/community/discussion/247/how-do-i-remove-or-hide-the-language-selection-box-on-my-survey

Leave a Reply