Skip to content

Translations for text field validation not deleted after removing widget #6848

@tino-web

Description

@tino-web

Can we access your project?

  • 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'm encountering two problems with the form validation translations:

  • When a widget is removed from the page, the translation remains in Settings -> Languages
  • When adding a textField widget, automatically "Please choose an option from the dropdown" is added even though a textField widget is added, not a dropdown.

In my project, I now have many orphaned translations that are not linked to existing widgets. (checked by searching for translation codes from kTranslationsMap in my project code)

Expected Behavior

  • When deleting a widget, the validation translation should be removed.
  • When adding a textField widget, validation message for dropdown should not be added

Steps to Reproduce

Reproducible from a blank project:

  1. Create new page
  2. Add multiple languages
  3. Add two textFields
  4. Wrap in form validation and enable validation for both fields
  5. Settings -> Languages -> "Please choose an option from the dropdown" is added
  6. Remove a textField
  7. Settings -> Languages -> Validation message not removed

Reproducible from Blank

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

Bug Report Code (Required)

IT4Cicn12ItIvsdY1pP2avpaniAXQz81RY0n0u5xQk0aN5PMC+wIZ/f7XFRuTde0Y29iPmH9mmQKptXemvD1DMIpPRasbphkzbl+ZgHyRTineK6sBbmCfG5/DcFMGUiF0Z+RhBVRD7ZvLHAm1F6mBe7LVgnUNLn1Clc7OM+HC5OK2SrDX1iXc2URm05KZDPz

Visual documentation

Image

Environment

- FlutterFlow version: 6.4.101
- Platform: Windows
- Browser name and version: Windows client
- Operating system and version affected: Windows 11

Additional Information

When fixing, please make sure orphaned translation messages are removed for existing projects.

Metadata

Metadata

Assignees

Labels

Bugstatus: confirmedIssue has been reproduced and confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions