I am trying to implement this in Question JS - so I can conditionalize the language set based on another passed through variable (and while I'm sure there's a way to do that in the jquery, I'm not the most savvy there). However, when I add the text there I'm getting an Unexpected Token error. Any thoughts?
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("select[id='Q_lang']").val("EN-GB"]);
});
I tried changing jQuery to $$ - I tried changing Q_lang to Q_language but nothing worked.
Aha - I had a rogue ] after the language - still trying to troubleshoot - will update here if I figure it out.
Hello: how would you do a conditional statement based on the language selected? I can get it to recognize the default language, but it doesn't apply to the language changed to. For example, if my default language was English, the proper output displays. If I change to Spanish using the following, it does not change.
var language = "This is English";
if(jQuery("select#Q_lang").val() == 'ES-ES') {
var language = "This is Spanish";
}
jQuery('#demo').html(language);
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.