I have create a survey like this:
JSON{
"pages": [
{
"name": "page1",
"elements": [
{
"type": "radiogroup",
"name": "question1",
"title": "Do you have a learning disability?",
"category": "Disabilities",
"choices": [
{
"value": "yes",
"text": "Yes"
},
{
"value": "no",
"text": "No"
}
]
}
]
},
{
"name": "page2",
"elements": [
{
"type": "radiogroup",
"name": "question2",
"title": "Do you need financial aid?",
"category": "Financials",
"choices": [
{
"value": "yes",
"text": "Yes"
},
{
"value": "no",
"text": "No"
}
]
}
]
},
{
"name": "page3",
"elements": [
{
"type": "radiogroup",
"name": "question3",
"title": "Do you require a ride from the airport?",
"category": "Rides",
"choices": [
{
"value": "yes",
"text": "Yes"
},
{
"value": "no",
"text": "No"
}
]
}
]
}
]
}
and get a result like this:
JSONresult: {"question1":{"value":"yes","category":"Disabilities"},"question2":{"value":"yes","category":"Financials"},"question3":{"value":"yes","category":"Rides"}}
and now I want to show this result in survey so I do this
Codesurvey.data = result;
survey.mode = 'display';
But all questions are empty!!
what should I do? can you give me an example?
thanks