Created
July 6, 2017 09:22
-
-
Save pawelgradecki/ca713b17b8bc259145a4b91643b77cff to your computer and use it in GitHub Desktop.
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
function changeCompositeFieldLabel(attributeName, label) { | |
var attribute = Xrm.Page.getAttribute(attributeName); | |
if (attribute != null) { | |
attribute.controls.forEach(function (c) { | |
c.setLabel(label); | |
}); | |
} | |
} | |
//Usage | |
changeCompositeFieldLabel("address1_line1", "Ulica") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment