I cant figure out why this won't work. This is the correct function to hide-show a tab for radio buttons, right?
function Name () {
if (Xrm.Page.getAttribute("RadioButtonField").getValue() == 2 (Yes)) {
Xrm.Page.ui.tabs.get("tab").setVisible(true);
}
else {
Xrm.Page.ui.tabs.get("Tab").setVisible(false);
}
}