Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pabloelisseo opened this issue May 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@pabloelisseo
Copy link
Contributor

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
@pabloelisseo pabloelisseo added the enhancement New feature or request label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant