Last active
April 24, 2018 16:52
-
-
Save DynCon365/38c564f1ec4a233a701014dbedc3fa3d to your computer and use it in GitHub Desktop.
Dynamics 365/CRM | Set required level of a field
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 | |
// Set Opportunity Est. Close Date as optional | |
Xrm.Page.getAttribute("estimatedclosedate").setRequiredLevel("none"); | |
// Set Opportunity Est. Close Date as required | |
Xrm.Page.getAttribute("estimatedclosedate").setRequiredLevel("required"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment