CLOZE question tab order

CLOZE question tab order

by Deepa Sankaranarayan -
Number of replies: 3

I am trying to create a moodle question for 2 digit multiplication. Each of the digits in the answer will be a CLOZE Numerical field. I would like to change the tab order of the CLOZE NUMERICAL fields so that I move from right to left while answering the question. Can this be done?  I know tabindex can  change the tab order, but not sure how I should integrate with CLOZE.  

Any help is appreciated. 

I am using moodle 2.5.3

Average of ratings: -
In reply to Deepa Sankaranarayan

Re: CLOZE question tab order

by Douglas Broad -

I don't think you have access to the question form inputs directly enough to indicate a tab order.  If you really think it's worth it, you could create the question so that the taborder gets set as you wish.  Below is a question code example that uses floating divs to fool the question layout (tab) order.

<p>Perform the following 2-digit multiplication</p>

<div style="clear:both;">

<div style="float:right;width:4em;text-align:right;">3</div>

<div style="float:right;width:4em;text-align:right;">2</div>

</div>

<div style="clear:both;">

<div style="float:right;width:4em;text-align:right;">4</div>

<div style="float:right;width:4em;text-align:right;">3</div>

<div style="float:right;width:4em;text-align:right;">X</div>

</div>

<div style="clear:both;">

<div style="float:right;border-top:solid thin black;">{:SA:=2}</div>

<div style="float:right;border-top:solid thin black;">{:SA:=8}</div>

<div style="float:right;border-top:solid thin black;">{:SA:=7}</div>

In reply to Douglas Broad

Re: CLOZE question tab order

by Deepa Sankaranarayan -

Douglas

That is super cool!  Just what I wanted. Thank you very  much !

Deepa

In reply to Deepa Sankaranarayan

Re: CLOZE question tab order

by Douglas Broad -

You're welcome. Glad to help.  I did forget a last closing </div> tag though.