surveyjs / survey-analytics

Customizable JavaScript library to create interactive survey data dashboards and facilitate survey results analysis for your end-users.
https://surveyjs.io/dashboard/examples/plain-data
Other
97 stars 49 forks source link

In tabulator questions with dot in the name aren't binded #157

Closed dmitry-kurmanov closed 2 years ago

dmitry-kurmanov commented 2 years ago

to reprocude:

var json = {
  questions: [
    {
      type: "radiogroup",
      name: "car.car",
      title: "What car are you driving?",
      isRequired: true,
      colCount: 4,
      choices: [
        "None",
        "Ford",
        "Vauxhall",
        "Volkswagen",
        "Nissan",
        "Audi",
        "Mercedes-Benz",
        "BMW",
        "Peugeot",
        "Toyota",
        "Citroen",
      ],
    },
  ],
};

var data = [
  {
    "car.car": "Audi",
  },
  {
    "car.car": "Ford",
  },
];

see https://github.com/olifolkerd/tabulator/issues/2911 and http://tabulator.info/docs/4.7/columns#field-nesting

dmitry-kurmanov commented 2 years ago

https://github.com/olifolkerd/tabulator/issues/2911 http://tabulator.info/docs/4.7/columns#field-nesting