Setting Field Visibility when the Business Process Stage Changes
By Joe GillPublished On 18th January 2015
In Dynamics 2015 we can now hook into the OnStageChange event which gets fired when the stage of a business process flow changes. We do this by adding an event handler to the OnStageChange event when the form loads. In this example when the form loads it calls the AddStageHandlers function so that the StageChangedHandler function gets called when the stage changes.
When the StageChangedHandler function runs it checks if the opportunity is at the “Close” stage. If the stage is Close then the header field estimated value field is disabled so that the Estimated Revenue cannot changed. It also hides the purchase timeframe field.
Leave A Reply
You must be logged in to post a comment.