Solved
How to hide the language box based on embedded data?
Please check the following code for me:
if ('${e://Field/Country}'='HKG') {
.LanguageSelectorContainer{
display: none;
};
}
Best answer by Zhen
Hi @xiangyu
You're in the right direction. But you've mixed JavaScript with CSS. It could be done in like this:
Edit Question JavaScript
```
if ('${e://Field/Country}'=='HKG') {
jQuery('.LanguageSelectorContainer').addClass('LanguageSelectorContainerHK');
}
```
Paste CSS into "Look and Feel" -> "General" -> "Style" -> "Custom CSS"
```
.LanguageSelectorContainerHK {
display: none;
};
```
Just make sure you've added "LanguageSelectorContainer" class name to the question html.
Hope it helps, cheers.
Zhen
!
!
!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
