Solved
Calendar question: How to translate
In my first question I ask the user for their preferred language.
Depending on their answer the survey changes language
using the following script for the onload function of the following question that is in a separate block ==>jQuery("select").val("${e://Field/Q_Language}").prop("checked",true);
However, I want to add a question in between asking the date they visited us (using the calendar survey question from the library). I want the question text to differ per language, but when I translate the survey using tools and change the text in HTML it still shows the survey using the English question text.
How can I translate the calendar question from the library?
Thank you!
Best answer by TomG
Actually, I was surprised your code to change language was working to begin with. I think you need to trigger the change event:
```
jQuery("select").val("${e://Field/Q_Language}").prop("checked",true).change();
```
Personally, I never put JS in the Question Text. I use "Add JavaScript..." If I load external JS libraries, I do in the survey header.
Also, I think the calendar from the Qualtrics library is really clunky. I use flatpickr instead. You can do localization by piping an appropriate value into the options. There are a number of Community posts about flatpickr.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
