You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.|
0 commit comments