Skip to content

Unable to localise fields using "Collection" as the form model #121

@AlanCornthwaiteKatalyst

Description

When using a Collection backed model that is passed into form_with it clears out the param_key. The param key is used internally by form_with to assign the object_name field.

GOVUK uses the object_name to handle localisation of field params such as label, hint, description etc.
As we clear out the param key OOTB, GOVUK is unable to perform any localisation for forms that are assigned a Collection.

Is it possible to not clear the param_key? This looks like it would be a breaking change and a bit of work to roll this out but i think it's important enough to push for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions