Last active
April 24, 2018 16:51
-
-
Save DynCon365/8faaf8705fd709d7da2de86da7e1ed3f to your computer and use it in GitHub Desktop.
Dynamics 365/CRM | Show/hide form sections
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Consider using Business Rules before using this code | |
// Create variables for the tab an section | |
var tab=Xrm.Page.ui.tabs.get("TabName"); | |
var section = tab.sections.get("SectionName"); | |
// Hide a section | |
section.setVisible(false); | |
// Show a section | |
section.setVisible(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment