Hello,
I want to hide a tab named "Email" (ID and Label is the same) in a view form. If the value of the field "contact" is not "Email", it should not be displayed. I wrote
I checked jQuery("[name='Data[contact]']").val() on one entry, it was "Tel" - but the Email tab showed up all the same. How can I solve this?
Regards,
Christian
I want to hide a tab named "Email" (ID and Label is the same) in a view form. If the value of the field "contact" is not "Email", it should not be displayed. I wrote
jQuery(document).ready(function($){
if !(jQuery("[name='Data[contact]']").val() == "Email") {
jQuery("[name='Email']").style.display='none';
}
});
I checked jQuery("[name='Data[contact]']").val() on one entry, it was "Tel" - but the Email tab showed up all the same. How can I solve this?
Regards,
Christian