Skip to content

Choice Chip Set FormField Action is Broken #701

@SameerShahzad99

Description

@SameerShahzad99

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 am unable to set the form field for the choice chips. If I set the value of String, The project fails to build with the following error:

Running "flutter pub get" in choice_chips_bug...
Launching lib/main.dart on Web Server in debug mode...
Waiting for connection from debug service on Web Server...      
lib/pages/home_page/home_page_widget.dart:112:59: Error: A value of type 'String' can't be assigned to a variable of type 'List<String>?'.
 - 'List' is from 'dart:core'.
                    _model.choiceChipsController?.value = 'Option 2';
                                                          ^
Waiting for connection from debug service on Web Server...         41.7s
Failed to compile application.

Expected Behavior

It should set the value of the form field correctly

Steps To Reproduce

  1. Add a Choice Chips, add some options, add some initial value as well
  2. Add a button and set the action to "Set Form Field" and set the choice chips value to something.
  3. Run the project and the error will be visible

Bug Report Code

https://app.flutterflow.io/project/choice-chips-bug-7oorcp?tab=uiBuilder&page=HomePage

Context

I am unable to update the choice chips according to my needs.

Additional info

Screenshot 2023-03-31 at 10 31 15 PM

Screenshot 2023-03-31 at 10 31 22 PM

Environment

- FlutterFlow version: v3.1
- Platform: Web
- Browser name and version: Chrome 111.0.5563.64
- Operating system and version affected: MacOS Ventura 13.0

Metadata

Metadata

Labels

status: confirmedIssue has been reproduced and confirmed as a bug.type: bugSomething isn't working.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions