Image Picker

Select image question - ImagePicker

                        

    
        Survey.StylesManager.applyTheme("default");
    


var json = {
   "elements": [
      {
         "type": "imagepicker",
         "name": "choosepicture",
         "title": "What animal would you like to see first ?",
        "choices": [
          {
            "value": "lion",
            "imageLink": "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"
          },
          {
            "value": "giraffe",
            "imageLink": "https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"
          },
          {
            "value": "panda",
            "imageLink": "https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"
          },
          {
            "value": "camel",
            "imageLink": "https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"
          }
        ]
      }
   ]
};

window.survey = new Survey.Model(json);


    survey.onComplete.add(function(result) {
        document.querySelector('#surveyResult').textContent =
            "Result JSON:\n" + JSON.stringify(result.data, null, 3);
    });


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


                    
<!DOCTYPE html>
<html>
<head>
    <title>Select image question - ImagePicker, Reactjs Survey Library Example</title>


    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://unpkg.com/react@15/dist/react.js"></script>
    <script src="https://unpkg.com/react-dom@15/dist/react-dom.js"></script>
    <script src="https://unpkg.com/@babel/standalone@7.2.5/babel.min.js"></script>
<script src="https://surveyjs.azureedge.net/1.1.12/survey.react.js"></script>
<link href="https://surveyjs.azureedge.net/1.1.12/survey.css" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" href="./index.css">

</head>
<body>
                <div id="surveyElement">
            </div>
    <div id="surveyResult"></div>

<script type="text/babel" src="./index.js"></script>

</body>
</html>

Column count: (default is 0)

var q = survey.getQuestionByName('choosepicture');
q.colCount = yourValue; 
survey.render();

var q = survey.getQuestionByName('choosepicture');
q.showLabel = yourvalue; 
survey.render();