I am correctly getting the values in Country dropdown from API and on selecting the country an API call is triggered to fetch the related regions.
I want to check if we can set the display value in the country dropdown as country name and store country id as value, so that the regions can be fetched using country id?
I am using survey-angular package version 1.1.26
I am trying to use choicesByUrl property for dropdown field to fetch choices from API.
Below is the code snippet for the same,
I have two dropdowns, 1. Country 2. Region
I want to fetch Region based on selected country
My country and region are stored in below format in backend
Country JSON:
Region JSON:
I am correctly getting the values in Country dropdown from API and on selecting the country an API call is triggered to fetch the related regions.
I want to check if we can set the display value in the country dropdown as country name and store country id as value, so that the regions can be fetched using country id?