I'm using the Surveyjs
editor library, however in the editor the result is being saved using name
as a reference to put in the result.
Example: Survey Result: {"question1":"item1","question2":"item2"}.
Example of Json
creating the quiz in the editor:
{
pages: [
{
name: "page1",
elements: [
{
type: "radiogroup",
name: "question1",
title: "Sobre sua vida",
choices: [
"item1",
"item2",
"item3"
]
},
{
type: "radiogroup",
name: "question2",
title: "Sobre seus carros",
choices: [
"item1",
"item2",
"item3"
]
}
]
}
]
}
Result I'm trying to get:
Survey Result: {"Sobre sua vida":"item1","Sobre seus carros":"item2"}.
This is the component link: Editor surveyjs