Show/Hide a Tab in a Model-Driven App Form using JavaScript
Andrea Pinillos
0:00 / 0:00
Show/Hide a Tab in a Model-Driven App Form using JavaScript
9 682 просмотра · 3 г. назад
Andrea Pinillos
2,7 тыс. подписчиков
9 682 просмотра · 3 г. назад
Let's Get Started: In this tutorial, I'll demo how the below JavaScript can allow a user to select a value from an option set that will show or hide a tab in a model-driven app form.
function TripTypeChange() {
if(Xrm.Page.getAttribute("option set schema name").getValue() != "option set schema name value") {
Xrm.Page.ui.tabs.get("tab name").setVisible(false);
}
else {
Xrm.Page.ui.tabs.get("tab name").setVisible(true);
}
}