Skip to content

Text field initial value does not work when populated from page/app state #1523

@ssaguadoinversiva

Description

@ssaguadoinversiva

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

I have a form with several fields. Some of them I would like them to be initial filled with some defaults. This defaults come from a page state that is a DataType with several properties.

The initial value is always empty.

I have tried with a Text instead (not a TextField) and it works property. If I link the text property to the same page state field it gets rendered without problem

Expected Behavior

I would expect that initial values in TextField gets filled when linked to a page state DataType property

Steps to Reproduce

  1. Create a new page
  2. Create a DataType with 1 property of type Double
  3. Add a PageState variable of the DataType defined in the previous step
  4. Add a TextField to the screen
  5. Link the initial value of the TextField to the property of the DataType
  6. Add a button to the screen that updates the value of the PageState variable property and do a Page Rebuild

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT48j8nc05NPmMNA0JD9bfpVniQUJj47apEZjextawk8J5zKB+wAYvf7P1FWTLymdHxbeE38sDkdxvfqhobTFvUEJUubY7ly/rhUdgHKWT+tbpCSPcyRfW1fL+BWClya4KuwkxF4AO9tS1YQ2nGAOtmsZD3XGJDUNjJEJuaLLdeK2SrDX1iXc2URm05KZDPz

Context

I cannot prepopulate the form with enough information affecting the UX of the application

Visual documentation

No need for an image

Additional Info

I think the textual explanation is enough

Environment

- FlutterFlow version: 4.0
- Platform: Mac
- Browser name and version: Chrome 117.0.5938.92
- Operating system and version affected: Mac Os Monterrey

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions