Skip to content

Format number fields during mapping #1575

@tibbis

Description

@tibbis

Description

When a text value is mapped to a number field, e.g. 100 USD, the 'USD' is still kept in the number field in the entry. Then if you save the entry it will give you an error that you cant save because the field contains letters.

I suggest adding a simple |number_format() filter to the mapping step for number fields to automatically format the value. or maybe add a formatting option in plugin feed settings.

Steps to reproduce

  1. Create number field in an entry type
  2. Map a text value to the number field
  3. run feed
  4. go to entry and save

Additional info

  • Craft version: 5.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions