Modify the labels of the Opportunity Close Quick Create form dynamically according to the context of the opportunity closure.
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 onLoad(executionContext){ | |
var formContext = executionContext.getFormContext(); | |
var pageContext = Xrm.Utility.getPageContext(); | |
var isWon = pageContext.input.data.param_won; | |
if(isWon) formContext.getControl('actualend').setLabel('Win date'); | |
else formContext.getControl('actualend').setLabel('Lose date'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment