Last active
April 4, 2018 20:40
-
-
Save DynCon365/a7c2e41edb9ec551f2e995e95e0f4660 to your computer and use it in GitHub Desktop.
Dynamics 365/CRM | Show/hide form fields
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 | |
// Show a form field | |
Xrm.Page.ui.controls.get("new_formField").setVisible(true); | |
// Hide a form field | |
Xrm.Page.ui.controls.get("new_formField").setVisible(false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment