One choice - dropdown (type:'dropdown'). Get the choices from a restfull service.
Open in new window

Link to a restufull service:

var q = survey.getQuestionByName('country');
q.choicesByUrl.url = 'http://yourrestfullserviceurl';;

The path to the array of results in the returned json:

var q = survey.getQuestionByName('country');
q.choicesByUrl.path = 'MyPathToTheResult';;

The 'value' element name in the returned json:

var q = survey.getQuestionByName('country');
q.choicesByUrl.valueName = 'thePropertyNameForValue';;

The 'title' element name in the returned json (if empty, the value is used):

var q = survey.getQuestionByName('country');
q.choicesByUrl.titleName = 'thePropertyNameForTitle';;

Survey.Survey.cssType = "bootstrap";
Survey.defaultBootstrapCss.navigationButton = "btn btn-green";

window.survey = new Survey.Model({ questions: [
    { type: "dropdown", name: "country", title: "Select the country...", isRequired: true, 
     choicesByUrl: {url: "", valueName: "name"} }
survey.onComplete.add(function(result) {
	document.querySelector('#surveyResult').innerHTML = "result: " + JSON.stringify(;

ReactDOM.render(<Survey.Survey model={survey} />, document.getElementById("surveyElement"));

<!DOCTYPE html>

    <title>Welcome to React</title>
    <script src=""></script>
    <script src=""></script>
    <script src=""></script>
    <script src=""></script>
    <link rel="stylesheet" href="">
    <link rel="stylesheet" href="./index.css">

    <div id="surveyElement"></div>
    <div id="surveyResult"></div>
    <script type="text/babel" src="./index.js"></script>


.btn-green {
  background-color: #1ab394;
  color: #fff;
  border-radius: 3px;

.btn-green:hover, .btn-green:focus {
    background-color: #18a689;
    color: #fff;

.panel-footer {
    text-align: right;
    background-color: #fff;