Skip to content

Commit 3a58f77

Browse files
authored
Add FAQ on accessing form context
1 parent 9600e76 commit 3a58f77

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,13 @@ sections:
6363
- question: How to add commandbar, search to subgrids
6464
answer: |
6565
To add commandbar, search to a subgrid for model-driven apps, you need to specify the [cds-data-set-options](manifest-schema-reference/data-set.md).
66+
67+
- question: Can I access the form context like I can in model-app event handlers?
68+
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".
6670
6771
additionalContent: |
6872
## See also
6973
7074
[Power Apps component framework API reference](reference/index.md)<br/>
71-
[Power Apps component framework overview](overview.md)
75+
[Power Apps component framework overview](overview.md)

0 commit comments

Comments
 (0)