FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
106 stars 18 forks source link

Incorrect Widget Functionality - Form #3201

Open FaludaAndIce opened 1 week ago

FaludaAndIce commented 1 week ago

Can we access your project?

Current Behavior

Validating the form field requires the user to select from the 'Autocomplete' options list. For a text field, the 'autocomplete' previously to your latest release was merely a suggestion and not a requirement for the field to validate.

Whether or not the user chooses from the 'autocomplete' list being a requirement for the form to validate should ideally be optional for better configurability. On the other hand, for dropdown elements error text would be great.

Workaround is to custom build the validation rather than relying no form validation.

Expected Behavior

Whether or not the user chooses from the 'autocomplete' list being a requirement for the form to validate should ideally be optional for better configurability.

Steps to Reproduce

  1. Create a Form
  2. Create a column inside the Form
  3. Add some text fields with backend queries, enable Autocomplete option for all fields
  4. Create a button
  5. Enable validation for the fields in the Form
  6. Try to validate the form, even with min/max char limit requirements but enter some text that is not matching to any of the autocomplete options
  7. You will not be able to validate the form without 'selecting from the dropdown options'

Reproducible from Blank

Bug Report Code (Required)

IT4skcjfsM5Om9xE0ZDuYMF7/TgUJUw5aLs8scpCbw4bIYj2P4lzY876PhFoONzjYAhYOlqmp14GpveNkoXtUfUCFwibGIBNyZNcbw/xRlyjaJuTF7uwVUZAL/1WClCe58GrpyVvC7NeW1I72jquHN6vdD7DGIT3PlQ8Sq/LZO4=

Visual documentation

Screenshot 2024-06-22 at 10 29 59 PM

Environment

FlutterFlow v4.1.61+ released June 19, 2024
Flutter version is 3.19.1
Google Chrome
Mac OS Sonoma

Additional Information

No response

FaludaAndIce commented 1 week ago

Hi team,

Please let me know if you need further clarification.

Unsure how to solve for this at the moment without a lot of custom actions to manually validate a field with AutoComplete

paulperez-dev commented 1 week ago

Hi @FaludaAndlce! If you don't want to validate the textfield, you can uncheck it in the Form validation fields list.

FaludaAndIce commented 1 week ago

@paulperez-dev I do want to validate this field using the Form Validation. But cannot as it's currently being validated as a 'dropdown'. I do see this feature being useful in other scenarios though, so maybe I shall just learn to live with it for now. Thanks team