+ 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.
0 commit comments