var json = {
 "pages": [
   "name": "page1",
   "elements": [
    { "type": "rating", "name": "satisfaction", "title": "How satisfied are you with the Product?", "mininumRateDescription": "Not Satisfied", "maximumRateDescription": "Completely satisfied" },
      "type": "panel",
      "name": "panel1",
      "title": "Please, help us improve our product",
      "visibleIf": "{satisfaction} < 3",
      "elements": [
          "type": "checkbox",
          "choices": [
              "value": "1",
              "text": "Customer relationship"
              "value": "2",
              "text": "Service quality"
              "value": "3",
              "text": "Support response time"
          "name": "What should be improved?"
          "type": "comment",
          "name": "suggestions",
          "title": "What would make you more satisfied with the Product?"
         "type": "panel", "innerIndent": 1, "name": "panel2", "title": "Send us your contact information (optionally)", "state":  "collapsed",
         "elements": [
            { "type": "text","name":  "name", "title":  "Name:" },
            { "type": "text", "inputType": "email","name":  "email", "title":  "E-mail"  }

                    window.survey = new Survey.Model(json);
            survey.onComplete.add(function(sender) {
            document.querySelector('#surveyResult').textContent =
            "Result JSON:\n" + JSON.stringify(, null, 3);
            }); = {satisfaction: 2};
                ko.applyBindings({ model: survey }, document.getElementById("surveyElement"));

<!DOCTYPE html>
<html lang="en">
    <title>Panel, Knockoutjs Survey Library Example</title>
<meta name="viewport" content="width=device-width" />
    <script src=""></script>
    <script src="/DevBuilds/survey-core/survey.core.min.js"></script>
    <script src="/DevBuilds/survey-core/survey.i18n.min.js"></script>
    <script src="/DevBuilds/survey-knockout-ui/survey-knockout-ui.min.js"></script>
    <link href="/DevBuilds/survey-core/defaultV2.min.css" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" href="./index.css">

<body style="margin: 0">
            <div id="surveyElement" style="display:inline-block;width:100%;">
                    <survey params="survey: model"></survey>
    <div id="surveyResult"></div>

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

Sorry, we can't retrieve the data from server. Please comeback later.

survey.pages[0].elements[1].title = yourTitle;

survey.pages[0].elements[1].innerIndent = innerIndentValue;

Why we use cookies.

This site uses cookies to make your browsing experience more convenient and personal. Cookies store useful information on your computer to help us improve the efficiency and relevance of our site for you. In some cases, they are essential to making the site work properly. By accessing this site, you consent to the use of cookies.

For more information, refer to DevSoft Baltic’ privacy policy and cookie policy.