Zef Fabian
·Co-founder at ReQuest Software and Events Solutions, Inc.

Possible Bug: TOGGLE SWITCHES NOT UPDATING

Widgets & Design

When i query a document reference and attach a boolean to the toggle switch's initial value to read a boolean data from the document, it doesn't correctly load the value. It always returns false. I even disabled query caching.

What have you tried so far?

So the work around I did was I loaded the document on page load and stored it to a local page state variable as document. Then i routed it next to a series of SET FORM FIELD and set the proper variables based from the local document stored. It all worked and loaded the toggle switches correctly.

Did you check FlutterFlow's Documentation for this topic?
No