Sure.
Say you have 2 Page Types "Question" and "Answers", and have it structured as such:
Question 1
Answer A
Question 2A
Answer 2A
Answer 2B
Answer B
Question 2B
Answer 2A
Answer 2B
I would have the item transformation (of type text/xml) for Question look like
{"QuestionText":"{% QuestionTextField %}",
"Answers": [
{^SubLevelPlaceHolder^}
]}
And the Answer item transformation look like:
{"AnswerText":"{% AnswerTextField %}",
"AnswerValue":"{% AnswerValueField %}",
"SubQuestions":[
{^SubLevelPlaceHolder^}
]}
Have a head at level 0 look like
<script type="text/javascript">
var QuestionsObj = {"Questions": [
And Footer level 0 look like
]};
</script>
And lastly a seperator transformation of just a comma
,
Put it all together, you should get this:
<script type="text/javascript">
var QuestionsObj = {
"Questions": [
{
"QuestionText": "What is 1+1?",
"Answers": [
{
"AnswerText": "2",
"AnswerValue": "2",
"SubQuestions": [
{
"QuestionText": "How sure are you?",
"Answers": [
{
"AnswerText": "Very",
"AnswerValue": "very",
"SubQuestions": []
},
{
"AnswerText": "Not too sure",
"AnswerValue": "nottosure",
"SubQuestions": []
}
]
}
]
},
{
"AnswerText": "1",
"AnswerValue": "1",
"SubQuestions": [
{
"QuestionText": "Are you really sure?",
"Answers": [
{
"AnswerText": "I don't like math",
"AnswerValue": "idontlikemath",
"SubQuestions": []
},
{
"AnswerText": "I am sure!",
"AnswerValue": "thispersonisntsmart",
"SubQuestions": []
}
]
}
]
}
]
}
]
};
</script>
from here you can then use jquery / javascript to build your drop downs dynamically and load the next questions from that answer's sub question object.