(Answer) (Category) LON-CAPA User Help : (Category) Authoring : (Category) Authoring Problems :
How can I hard code the default maximum number of tries in a problem.
The xml for this is <parameter description="Maximum Number of Tries" type="int_pos" default="1" name="maxtries">
Change the default="1" to whatever value you want.
Note that this parameter applies to a problem part and is NOT a parameter inside a response block.
It must appear outside the response block tags e.g. before < numericalresponse>
but within the <part > tags for a parted problem.
You can use the CSTR graphical Edit features to aid you in inserting the correct xml when doing this.
However, as of LON-CAPA v1.2, there was not a drop list item to insert parameter tags inside a problem or problem part.
You will have to go to "editXML" and enter a pair of <parameter > tags in the appropriate place.
Once you have done that you will find in Edit that there is available a template for the maxtries parameter.
batchelo@sfu.ca
[Append to This Answer]
Previous: (Answer) How do I have hints show up after more than 1 try?
Next: (Answer) how to display variables that must be parsed first
This document is: http://help.loncapa.org/cgi-bin/fom?file=338
[Search] [Appearance] [Show This Answer As Text]
This is a Faq-O-Matic 2.719.
This FAQ administered by the LON-CAPA team at MSU. Submit a help request ticket to contact us.