surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.2k stars 809 forks source link

Optionally store question value in panel as a nested object #4503

Open andrewtelnov opened 2 years ago

andrewtelnov commented 2 years ago

Let's say you have an "address" panel and several questions in it: "country", "city", "postcode" and so on. It will be nice, optionally, to store these data in survey as:

address: {
  country: "Estonia",
  city: "Tallinn"
}

Right now, only flat stucture is supported.

andrewtelnov commented 11 months ago

The best solution is to use composite question to handle it.

Thank you, Andrew