Skip to content

Commit 96317fd

Browse files
authored
Create addLoaded
1 parent 101428a commit 96317fd

File tree

1 file changed

+38
-0
lines changed
  • powerapps-docs/developer/model-driven-apps/clientapi/reference/formContext-ui

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: "ui.addLoaded (Client API reference) in model-driven apps| MicrosoftDocs"
3+
description: Includes description and supported parameters for the ui.addLoaded method.
4+
author: aorth
5+
ms.author: aorth
6+
ms.date: 07/02/2024
7+
ms.reviewer: jdaly
8+
ms.topic: reference
9+
applies_to: "Dynamics 365 (online)"
10+
search.audienceType:
11+
- developer
12+
contributors:
13+
- JimDaly
14+
---
15+
# ui.addLoaded (Client API reference)
16+
17+
Adds a function to be called on the form **Loaded** event which happens after the form completes the load process.
18+
19+
## Syntax
20+
21+
`formContext.ui.addLoaded(myFunction)`
22+
23+
## Parameter
24+
25+
|Name|Type|Required|Description|
26+
|--|--|--|--|
27+
|`myFunction`|function reference|Yes|The function to be executed on the form [Loaded](../events/form-onload.md) event. The function will be added to the bottom of the event handler pipeline. The execution context is automatically passed as the first parameter to the function. See [Execution context](../../clientapi-execution-context.md) for more information.|
28+
29+
### Related articles
30+
31+
[removeLoaded](removeOnLoad.md)
32+
[Form Loaded event](../events/form-loaded.md)
33+
[formContext.ui](../formContext-ui.md)
34+
[formContext](../../clientapi-form-context.md)
35+
36+
37+
38+
[!INCLUDE[footer-include](../../../../../includes/footer-banner.md)]

0 commit comments

Comments
 (0)