I created a PCF control to auto-complete addresses. This includes two parameters (latitude and longitude) which are not required. When the control is added to a Form and these fields are actually not bound, the result from the GetOutputs isn't processed by the framework. No errors are warnings just nothing happens.
Expected the output to be processed correctly for all the actual bound fields, and the not bound fields to be simple ignored. If this is not preferred operation, then change the wizard to bind parameters to require all parameters.
In addition (but this might be expected) when all fields are bound, all fields must be added to the form. If not the case no errors or warnings, but after save the fields not on the form are cleared in the control as they aren't in the Inputs.
Preferred would be this works for all fields of the entity (on the form or not) or change the wizard to be able to only bind to fields available on the form (to prevent confusion).
Hi,
Thank you for making us aware of this issue. We are tracking this with internal bug 1505831. In the meantime, I'd suggest either updating your code to not include this key on the outputs object when you do not recieve an input of it, or marking it as required.
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
65
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1