Skip to content

Commit b19422b

Browse files
authored
Updated based on changes submitted
1 parent 377b337 commit b19422b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

powerapps-docs/developer/model-driven-apps/clientapi/reference/events/onprestagechange.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "OnPreStageChange Event (Client API reference) in model-driven apps in Power Apps| MicrosoftDocs"
3-
ms.date: 10/10/2019
4-
ms.service: crm-online
3+
ms.date: 01/23/2019
4+
ms.service: powerapps
55
ms.topic: reference
66
ms.assetid:
77
author: msftman
@@ -16,6 +16,11 @@ search.app:
1616

1717
This event occurs **Before** the stage of a business process flow control changes. This event occurs after the user selects the **Next Stage**, **Move to previous stage** or **Set Active Stage** buttons in the user interface or when a developer uses the `formContext.data.process.moveNext`, `formContext.data.process.movePrevious`, or `formContext.data.process.setActiveStage` methods.
1818

19+
> ![NOTE]
20+
> The onPreStageChange event is supported only:
21+
> - On the Unified Interface.
22+
> - For single-entity business process flows; it isn't supported for cross-entity processes.
23+
1924
From within a web resource script registered to the onPreStageChange event, a developer can invoke the following on the executionContext object passed into the web resource script:
2025

2126
`executionContext.getEventArgs().preventDefault();`
@@ -31,9 +36,7 @@ An execution context object is passed to event handlers for this event. You can
3136
- **getDirection**: Returns a string that is either “next” or “previous” to show the direction of the stage change.
3237
- **getStage**: Returns a stage object. Except when the navigation moves to a new entity, the stage returned represents the destination stage object,that is, the next active stage. When the navigation moves to a new entity, the stage is the stage being navigated from, that is, the previous active stage object. More information: [Stage methods](../formContext-data-process.md#stage-methods).
3338

34-
This client API is only supported on the unified client. The legacy web client does not support this client API.
3539

36-
onPreStageChange is only supported for single entity Business Process Flows. It is not supported for cross-entity processes.
3740

3841
## Methods supported for this event
3942
- **formContext.data.process**.[addOnPreStageChange](../formcontext-data-process/eventhandlers/addOnPreStageChange.md) method to add event handlers for this event.

0 commit comments

Comments
 (0)