Introduction:
In this Blog we will see how to show or hide Command bar using JavaScript in Both Dataverse/Model Driven Apps/ CRM
Below is the Sample Screen Shot for Command bar
To recover from this Situation Microsoft introduced a new Feature for Show or Hide functionality
Script to Use:
formContext.ui.headerSection.setCommandBarVisible(BOOLEAN);
To Utilize in script
function showOrHideCommandBar(executionContext)
{
var formContext = executionContext.getFromContext();
formContext.ui.headerSection.setCommandBarVisible(false); // True to enable // False to hidden
}
That's it :)
No comments:
Post a Comment