-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Labels
Description
Has your issue been reported?
- I have searched the existing issues and confirm it has not been reported.
- I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.
Current Behavior
Invalid code is generated:
"Undefined name 'myComponentRecord'.
Try correcting the name to one that is defined, or defining the name.
Expected Behavior
It should be possible to access fields in the handler of On Data Changed
Steps to Reproduce
- Create a container component
- Add a firestore query to container, of type: Query Collection, Single Document query. Add any filter.
- Add a form field inside the container
- Add an On Data Change action to the same component. Set the form field to a field of the query document from Radio button initial value is blank #2.
Reproducible from Blank
- The steps to reproduce above start from a blank project.
Bug Report Code (Required)
IT40hcnfz5Fgod9c1rrUK/lahmU5JlN9RI0Nke57aCsofePrOpkAf8/7UFtUOd+/SlVXfU6JjngX/MmKkdr1O8cEHymYfJQ/z8xcVA7hTXOnRZeYEq63b3wnO8pYJkzD5rSw3CNQXdtscmAmw2eMHvCsaBHZGYT3OUQWROaoXdeK2SrDX1iXc2URm05KZDPz
Context
Form fields only support "initial" value. It is impossible to update form fields as a result of "On Data Changed", even though FlutterFlow allows it, the code generated is invalid because the definition of the single document is place in an incorrect relative location, causing an undefined variable error.
Visual documentation



Additional Info
No response
Environment
- FlutterFlow version: v1.1.97
- Platform: iOS
- Browser name and version: Native FF
- Operating system and version affected: all