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);
}
}
Ещё видео!