Show/Hide a Tab in a Model-Driven App Form using JavaScript

Published: 16 February 2023
on channel: Andrea Pinillos
9,521
96

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);
}
}


On this page of the site you can watch the video online Show/Hide a Tab in a Model-Driven App Form using JavaScript with a duration of hours minute second in good quality, which was uploaded by the user Andrea Pinillos 16 February 2023, share the link with friends and acquaintances, this video has already been watched 9,521 times on youtube and it was liked by 96 viewers. Enjoy your viewing!