On this template:
{foreach:results,key,valueObj}
:
<ol type="A">
<li><label><input type="radio" value="1" type="radio" value="2"
name="frmAnswer[{valueObj.quiz_id}]"
id="frmAnswer_{valueObj.quiz_id}b"
name="frmAnswer[%s]" flexy:nameuses="valueObj.quiz_id"
should work. - In the end, radio buttons are a royal pain in the ass, and a number of times I've just written a hack
{radioButton(valueObj.quiz_id},2):h}
Regards
Alan
/>{valueObj.answer2:h}</label></li>
<li><label><input type="radio" value="3"
name="frmAnswer[{valueObj.quiz_id}]"
id="frmAnswer_{valueObj.quiz_id}c"
/>{valueObj.answer3:h}</label></li>
:
</ol>
</div>
{end:}
- The selected buttons don't get marked as checked. They do if the element
names are fixed ie:
<li><label><input type="radio" value="3" name="frmAnswer[0]"
id="frmAnswer_0c" />{valueObj.answer3:h}</label></li>
Is there a workaround?
I've googled and searched but not found any examples of this issue - if
there is, point me in the right direction and I'll take it from there.
Thanks
Peter