-
Notifications
You must be signed in to change notification settings - Fork 2
/
surveyjson1.js
executable file
·32 lines (32 loc) · 1 KB
/
surveyjson1.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
export const json = {
"elements": [{
"type": "dropdown",
"name": "country",
"title": "Select a country",
"description": "A full list of countries is queried from a RESTful web service.",
"choicesByUrl": {
"url": " https://marketplace.api.healthcare.gov/api/v1/",
"valueName": "name"
}
}, {
"type": "panel",
"name": "countriesByRegion",
"title": "Filter countries by selected region",
"description": "Only countries from the selected region are queried.",
"elements": [{
"type": "dropdown",
"name": "region",
"title": "Select a region",
"choices": ["Africa", "Americas", "Asia", "Europe", "Oceania"]
}, {
"type": "dropdown",
"name": "reg_country",
"title": "Select a country",
"choicesByUrl": {
"url": "https://surveyjs.io/api/CountriesExample?region={region}",
"valueName": "name"
}
}]
}],
"showQuestionNumbers": false
};