[LON-CAPA-users] set maxtries in problem

Guy Albertelli II lon-capa-users@mail.lon-capa.org
Tue, 27 May 2003 15:46:55 -0400 (EDT)


Hi Lars,

> I have an option response Yes/No question, and want to limit the student
> to one try. How do I include this in the problem? I tried something like
> the below, but it doesn't work.  -Lars.
> 
> 

You need to do this:

<parameter name="maxtries" type="int_zeropos" description="Max tries allowed" default="1" />
<optionresponse max="10">
	<foilgroup options="('Yes','No')">
		<foil value="No" name="test">
		</foil>
	</foilgroup>
</optionresponse>

maxtries is a _part_ level parameter not a _response_ level parameter

Consider the case

<part>
  <numericalresponse></numericalresponse>
  <numericalresponse></numericalresponse>
</part>

If you did 

<part>
  <numericalresponse><responseparam name="maxtries" default="3" /></numericalresponse>
  <numericalresponse><responseparam name="maxtries" default="30" /></numericalresponse>
</part>


I'd be a bit confused as to what you meant. :-)

Let me know if this doesn't work out for you.
-- 
guy@albertelli.com  LON-CAPA Developer  0-7-6-9-