Hello all,
I am trying to hide some languages based on the embedded data.
If Country_Code = HK to hide English (Mainland) and Chinese Simplified (Mainland).
I have JS in the first question of the survey, which correctly assigns the language, but I can't seem to figure it out how to hide. Made this code out of a lot of solutions I have founds, so I am not surprised it doesn't work.
if(COUNTRY_CODE == "HK")
{
var chineseCNLanguage;
var englishCNLanguage;
chineseCNLanguage = jQuery('option[value="CN-ZH"').attr('lang');
englishCNLanguage = jQuery('option[value="CN-EN"').attr('lang');
chineseCNLanguage.setAttribute("hidden", true);
chineseCNLanguage.hide();
englishCNLanguage.setAttribute("hidden", true);
englishCNLanguage.remove();
}
Hide certain languages based on embedded data
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
