You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we can only include one label to the country_subdivision question type. However, different countries subdivisions have different names (e.g. United Kingdom subdivisions are called Counties while Germany subdivisions are called Regions)
Context
We use this type of questions and right now we need to create several dependant questions with almost the same configuration instead of having just one with several labels depending on the country.
Possible Implementation
The label property could be an object instead of a string:
{
"type": "country_subdivision",
"label": {
"en": "County",
"de": "Region"
},
"name": "country_subdivision",
"placeholder": "Please make a selection",
"config": {
"countryQuestionName": "country",
"valueType": "name",
"search": true
},
"errorMessages": {
"required": "This field is required"
},
"registerConfig": {
"required": true
}
}
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
Detailed Description
Right now we can only include one label to the
country_subdivision
question type. However, different countries subdivisions have different names (e.g. United Kingdom subdivisions are called Counties while Germany subdivisions are called Regions)Context
We use this type of questions and right now we need to create several dependant questions with almost the same configuration instead of having just one with several labels depending on the country.
Possible Implementation
The
label
property could be anobject
instead of astring
:Your Environment
@onebeyond/react-form-builder: v2.3.1
The text was updated successfully, but these errors were encountered: