I´m trying to understand if a can bound a PCF control to multiple fields in Dataverse? Or if it has to be bound to only one?
Solved! Go to Solution.
HI @Kran ,
You can bound a PCF to multiple bound fields. You can also bound a PCF to multiple datasets. But you cannot bound a PCF to both fields and dataset (at least for model-driven apps).
If you have a PCF with multiple fields, the only problem is that, using form scripting, you cannot disable/hide the fields contained in your PCF (expect the first one). You need to think of a way, if you need that. But the onChange will be triggered for all fields.
I have a blog about composite PCF control, just in case you would like to have a look: https://dianabirkelbach.wordpress.com/2021/03/06/twooptionscomposite-the-downside-of-pcf-composite-c...
Hope this helps!
Kind regards,
Diana
HI @Kran ,
You can bound a PCF to multiple bound fields. You can also bound a PCF to multiple datasets. But you cannot bound a PCF to both fields and dataset (at least for model-driven apps).
If you have a PCF with multiple fields, the only problem is that, using form scripting, you cannot disable/hide the fields contained in your PCF (expect the first one). You need to think of a way, if you need that. But the onChange will be triggered for all fields.
I have a blog about composite PCF control, just in case you would like to have a look: https://dianabirkelbach.wordpress.com/2021/03/06/twooptionscomposite-the-downside-of-pcf-composite-c...
Hope this helps!
Kind regards,
Diana