I've been using this function to hide a relationship navigation item on a form in a certain condition using Javascript:
ToggleNavigationItem = function (navName, isVisible) {
var navs = Xrm.Page.ui.navigation.items.get();
for (var i in navs) {
var nav = navs[i];
if (nav.getLabel() === navName) {
nav.setVisible(isVisible);
}
}
};
It works well on the web but it raises an error on the mobile application as it doesn't recognize "items", does anyone know what to replace it with for the mobile to do the same functionality?
*This post is locked for comments
I have the same question (0)