Skip to content

Instantly share code, notes, and snippets.

@DynCon365
Last active April 4, 2018 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DynCon365/a7c2e41edb9ec551f2e995e95e0f4660 to your computer and use it in GitHub Desktop.
Save DynCon365/a7c2e41edb9ec551f2e995e95e0f4660 to your computer and use it in GitHub Desktop.
Dynamics 365/CRM | Show/hide form fields
// 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