Skip to content

Commit cf30ca9

Browse files
authored
Update note
1 parent 3a58f77 commit cf30ca9

File tree

1 file changed

+1
-1
lines changed
  • powerapps-docs/developer/component-framework

1 file changed

+1
-1
lines changed

powerapps-docs/developer/component-framework/faq.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ sections:
6666
6767
- question: Can I access the form context like I can in model-app event handlers?
6868
answer: |
69-
Accessing the form context directly in a control is not supported. Instead, a control can be bound to a field and an OnChange event handler can be attached to that field. The control can update the field value, and the OnChange event handler can access the form context. A field not bound to an entity can be used, or a field with submitMode set to "never".
69+
Accessing the form context directly in a control is not supported. Code components are expected to work across various platforms and surfaces like model-driven apps, canvas apps, and dashboards, and hence they cannot take dependency on form context. A work around is to make a control bound to a field and add an OnChange event handler to that field. The control can update the field value, and the OnChange event handler can access the form context. A field not bound to an entity could be used, or a field bound to an entity with submitMode set to "never" could be used. We will add support for the custom events in future which can be used for communicating changes outside of a control without adding a field configuration.
7070
7171
additionalContent: |
7272
## See also

0 commit comments

Comments
 (0)