I want people to flip their phones when they enter a conjoint exercise for better visibility. The survey is in English and Spanish, so the alert and error message needs to show in Spanish when the language has been selected at the beginning of the survey in a question we ask called Sp (1=Spanish, 2=English).
I have this code in the footer of the conjoint question for simple English alert/messaging. What do I need to add to show it in Spanish? The message would be
"Gire su dispositivo a una posición horizontal (paisaje) para ver todas las opciones en las preguntas de esta sección."
<script type="text/javascript">
if($(window).width()<$(window).height() && $(window).width()<500)
{
alert("Please flip your device to a horizontal position (landscape)to see all the options for the questions in this section.");
strErrorMessage = "Please flip your device to a horizontal position (landscape) to see all the options for the questions in this section.";
}
</script>