Solved
Setting a global variable and then call on it at question level
I want to set a global variable in the header based on the language that is selected and then be able to call on it at the question level. My attempt is below, but I cannot seem to get it to work.
<script>
Qualtrics.SurveyEngine.addOnload(function() {
if (jQuery('#Q_lang').val() == 'DE' || jQuery('#Q_lang').val() == 'NL'){var delimeter = '.';}
else {var delimeter = ',';}
});
</script>
Any suggestions?
Best answer by NiC
Hi @HPowell,
Just remove the code from the function(addOnload) then it should work fine.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
