Skip to content

FEATURE: Being able to use lowercase and underscore separated country names as CountryV2 value too #257

@pabloelisseo

Description

@pabloelisseo

Detailed Description

Be able to split the answer of Country V2 type questions into country and country_of_residence. Being country the ISO-3166-2 code and country_of_residence the lowercase and underscore separated name (e.g. country: GB, country_of_residence: united_kingdom).

Context

It is our usual way of working with our client and we almost always need to do this data handling manually

Possible Implementation

Right now the library countries-list is being used for getting the countries ISO-3166-2 code and the library i18n-iso-countries for the countries name in different languages. The library countries-list also provides a list of countries english name which can be easily transformed on the value we need.

Your Environment

  • Version used: @onebeyond/react-form-builder: v2.3.1
  • Environment name and version (e.g. Chrome 39, node.js 5.4): Not relevant
  • Operating System and version (desktop or mobile): Not relevant
  • Link to your project: https://github.com/greenroomdigital/taylormade

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions