I'm being driven crazy by some behavior of the modern "Check box" control on my Canvas app.
The checkbox is not bound to database data; it is just used to determine a feature of a PA flow.
The desired behavior is that it defaults to checked, then can be changed at will by the user, but can also be changed programmatically when a dropdown choice gets made.
I have the Checked property assigned to a global variable. The variable is set true in app start, and is also set true on the action of a "New" button that displays a "modal" that it is on.
The onchange from the dropdown also sets the global to true or false as appropriate.
Finally, the onchecked and onunchecked checkbox properties set the variable as well.
A text control displayed in the same place as the checkbox behaves perfectly. The checkbox does not.
The current behavior is that when I start the app and click "New", the checkbox is not checked. Trying to change it as the user does not change the value.
I change the visibility of the container off and on a few times, and then the checkbox starts to behave correctly and keeps doing so.
I've tried adding Reset(checkbox) after I set the variable. I've also tried setting the variable to false and then true again.
Any ideas on how to resolve? It's pretty lame to have to tell users to do that before using the app.
Not a PCF question, but Categories is required and only has 3 inappropriate options ?!?
Thanks.
John