react-form-builder icon indicating copy to clipboard operation
react-form-builder copied to clipboard

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

Open pabloelisseo opened this issue 1 year ago • 0 comments

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 avatar May 22 '24 08:05 pabloelisseo