Hi community,
is there a nice way to tell the control that it shall be disabled/editable than having a client-side script (addOnChange) and an additional input? I'm using pcf with react so would just have to pass a disabled state to the component.
We just came across a form on which all fields are locked if the form is in a specific state but none of the pcf are. The only solution that came into mind is the above mentioned but it's ugly and I guess there is no nice alternative because I need to tell the pcf somehow it needs to be disabled.
Thanks in advance and happy coding
Neat! Thanks.
The status of the field on the form is accessible via the context.mode.isControlDisabled method. If it's set to true the PCF component should be in readonly mode - what that is for your control is up to you.
WarrenBelz
87
Most Valuable Professional
mmbr1606
71
Super User 2025 Season 1
Michael E. Gernaey
65
Super User 2025 Season 1