Dave (11/24/2014)
Your /branch attributes ought to reside at the <trial> / <likert> / <surveypage> level, not the <block> level.I have the counter for "yes" responses in the likert element:
<likert consomm2>
/anchors = [1="Oui"; 2="Non"]
/stimulusframes = [1 = consomm2]
/ontrialend = [if (likert.consomm2.response==1) values.myscore2+=1]
/mouse=true
/numpoints=2
/position= (50, 80)
</likert>
I don't understand how it would ever work if I have the branch there too, since all questions need to be answered, and what happens next depends on how many "yes" responses there were.
since you do not provide any relevant code. I am also confused with your references to likert elements ("The questions are text elements with likert scales attached to them.") -- <surveypage>s and <likert>s are different things.
There were two issues in my original post, one has to do with branching and the other with how to have several different responses to a single question.
A surveypage was suggested to solve the latter. I have:
<surveypage alimentation>
/questions = [1 = consommation; 2 = quantite; 3 = mode]
/ontrialbegin = [values.myquestion=list.questionlist.nextvalue]
/ontrialend = [if (radiobuttons.consommation.response=="Non") list.questionlist.nextvalue]
/caption = "<%values.myquestion%>"
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>
<list questionlist>
/items = ["Orange, citron, clémentines, pamplemousse", "Prunes, pruneaux", "Courgette, potimarron, ou autre courge", "Salade", "Noix",
"Maquereau", "Sardine ou hareng", "Saumon", "Esturgeon", "Merlu, truite", "Boeuf", "Porc", "Agneau", "Cheval", "Volaille", "Œuf",
"Sucre blanc", "Sucre roux", "Miel", "Confiture", "Pâte à tartiner au chocolat", "Rapadura", "Aspartame", "Huile d'olive",
"Huile de tournesol", "Huile de noix", "Huile de lin", "Huile de bourrache ou onagre", "Huile de soja", "Huile de cameline",
"Huile de colza", "Huile de palme ou coco"]
</list>
<radiobuttons consommation>
/caption = "Consommation"
/options = ("Oui" , "Non")
/position = (50, 20)
/required = false
</radiobuttons>
<textbox quantite>
/caption = "Quantité (en grammes)"
/required = false
/position = (50, 50)
</textbox>
<radiobuttons mode>
/caption = "Mode de préparation"
/options = ("Cru" , "Cuit")
/required = false
/position = (50, 70)
</radiobuttons>
The radiobuttons and the textbox show up properly, but the questions in the list do not. And the branch does not work either.