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
Copy file name to clipboardExpand all lines: powerapps-docs/developer/model-driven-apps/troubleshoot-forms.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ This article helps fix some common issues that you might encounter while working
30
30
31
31
## URL parameters to disable various form components
32
32
33
-
You require URL parameters to disable various form components that helps narrow down issues to a specific component. It is recommended that you use the flags one at a time to narrow down the cause of the issue. The following are a list of URL parameters that can be used:
33
+
You require URL parameters to disable various form components that help narrow down issues to a specific component. It is recommended that you use the flags one at a time to narrow down the cause of the issue. The following are a list of URL parameters that can be used:
34
34
35
35
- DisableFormCommandbar
36
36
@@ -76,7 +76,7 @@ You'll need the `eventIndex` and `libraryIndex` parameter values when using the
76
76
77
77
## Disable form handlers
78
78
79
-
To disable form handlers use the following flags:
79
+
To disable form handlers, use the following flags:
80
80
81
81
-**&flags=DisableFormHandlers=\<event name\>**: Disables the form handlers by specifying the event name, for example, `DisableFormHandlers=OnLoad`. If you use the `DisableFormHandlers=true` flag, it disables the following event handlers: [OnLoad](https://docs.microsoft.com/powerapps/developer/model-driven-apps/clientapi/reference/events/form-onload), [OnSave](https://docs.microsoft.com/powerapps/developer/model-driven-apps/clientapi/reference/events/form-onsave), business rule, [OnChange](https://docs.microsoft.com/powerapps/developer/model-driven-apps/clientapi/reference/events/attribute-onchange), and [TabStateChange](https://docs.microsoft.com/powerapps/developer/model-driven-apps/clientapi/reference/events/tabstatechange).
82
82
@@ -141,7 +141,7 @@ While working on model-driven apps forms, you notice some unexpected behaviors w
141
141
142
142
Any of the above behaviors appears after the form is opened, for example, you see a value or control for a second, and then the value changes or the control disappears.
143
143
144
-
There are many possible causes for the unexpected behaviors when a form opens. One of the most common is the [OnLoad](https://docs.microsoft.com/powerapps/developer/model-driven-apps/clientapi/reference/events/form-onload) scripts that runs synchronously or asynchronously to change the field/control behavior. To determine if your script is causing the issue, you can disable the form handlers using the URL parameters by appending `**&flags=DisableFormHandlers=true**` flag at the end of your app URL.
144
+
There are many possible causes for the unexpected behaviors when a form opens. One of the most common is the [OnLoad](https://docs.microsoft.com/powerapps/developer/model-driven-apps/clientapi/reference/events/form-onload) scripts that run synchronously or asynchronously to change the field/control behavior. To determine if your script is causing the issue, you can disable the form handlers using the URL parameters by appending `**&flags=DisableFormHandlers=true**` flag at the end of your app URL.
145
145
146
146
If the form loads normally after you disable the form handler, it indicates that there is an issue with the script that is blocking or causing an error when a form is loading.
147
147
@@ -217,7 +217,7 @@ This causes the form script error because the first parameter for the `OnLoad` f
217
217
218
218
**Resolution**:
219
219
220
-
In the monitor tool the `FormEvent.onload` operation provides all the details including the web resource, function, and the line that is causing the issue.
220
+
In the monitor tool, the `FormEvent.onload` operation provides all the details including the web resource, function, and the line that is causing the issue.
221
221
222
222
> [!div class="mx-imgBorder"]
223
223
> 
@@ -240,15 +240,15 @@ There are many possible reasons for a form to freeze, loads slowly, throws **Web
240
240
241
241
**Resolution**:
242
242
243
-
- Use the **DisableFormCommandbar** flag and refresh the page. If the issue gets resolved, it indicates that the issue is caused by some command customization.
243
+
- Use the **DisableFormCommandbar** flag and refresh the page. If the issue is resolved, it indicates that the issue is caused by some command customization.
244
244
245
245
- If the issue still persists, use the **DisableFormHandlers=true** flag. If the issue doesn't gets resolved, you can further identify the exact event handler function that's causing the problem.
246
246
247
247
- Assuming the form has 10 libraries, and 20 `OnLoad` event handlers, you can use the binary search approach to narrow down the handler index range.
248
248
249
249
- Open the [Monitor Tool](https://docs.microsoft.com/powerapps/maker/model-driven-apps/monitor-form-checker) to view the registered form event handlers and libraries to get the list of `OnLoad` event handlers of indices ranging from 0 to 19 and form libraries of indices ranging from 0 to 9.
250
250
251
-
- Use the **DisableFormHandlers=onload_0_9** flag. If the issue gets resolved, it indicates that the issue is caused by some handlers between the index range 0 and 9 (both included); otherwise, the issue is caused by handlers between index 10 and 19.
251
+
- Use the **DisableFormHandlers=onload_0_9** flag. If the issue is resolved, it indicates that the issue is caused by some handlers between the index range 0 and 9 (both included); otherwise, the issue is caused by handlers between index 10 and 19.
252
252
253
253
- Assuming the issue is caused by handlers of index 0 to 9, use the **DisableFormHandlers=onload_0_4 (or true_0_4)** flag to disable handlers for the index range between 0 and 4. Continue doing the same until the range is small enough to loop through each one individually.
In the [Monitor Tool](https://docs.microsoft.com/powerapps/maker/model-driven-apps/monitor-form-checker), the `RelatedMenu` operation provides all the details that is causing the issue.
296
+
In the [Monitor Tool](https://docs.microsoft.com/powerapps/maker/model-driven-apps/monitor-form-checker), the `RelatedMenu` operation provides all the details that are causing the issue.
297
297
298
298
There are also a few sources where a record can be included as an option for the related menu tab. The following example includes details that indicate the label `Activities` in account form related menu comes from the related entity's plural display name.
0 commit comments