Cart Buy Licenses Contact Support Login/Register
v 1.8.25
v 1.8.25
Overview Examples Docs Source Download

Carry forward

Select choice questions - Share choices and optionally filter them.


                var json = {
  "elements": [
      "type": "checkbox",
      "name": "car",
      "isRequired": true,
      "title": "What cars have you being drived?",
      "colCount": 4,
      "choicesOrder": "asc",
      "choices": [
      "type": "radiogroup",
      "name": "bestcar",
      "isRequired": true,
      "colCount": 4,
      "visibleIf": "{car} notempty",
      "title": "What car did you enjoy the most?",
      "choicesFromQuestion": "car",
      "choicesFromQuestionMode": "selected"
      "type": "radiogroup",
      "name": "secondcar",
      "isRequired": true,
      "colCount": 4,
      "visibleIf": "{car.length} > 1",
      "title": "What car is your second choice?",
      "choicesFromQuestion": "bestcar",
      "choicesFromQuestionMode": "unselected"

                window.survey = new Survey.Model(json);
            survey.onComplete.add(function(result) {
            document.querySelector('#surveyResult').textContent =
            "Result JSON:\n" + JSON.stringify(, null, 3);
            model: survey 

<!DOCTYPE html>
<html lang="en">
    <title>Select choice questions - Share choices and optionally filter them., jQuery Survey Library Example</title>

<meta name="viewport" content="width=device-width" />
    <script src=""></script>
<script src="/DevBuilds/survey-jquery/survey.jquery.min.js"></script>
    <link href="/DevBuilds/survey-knockout/modern.css" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" href="./index.css">

            <div id="surveyElement" style="display:inline-block;width:100%;">
    <div id="surveyResult"></div>

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