(Answer) (Category) LON-CAPA User Help : (Category) Authoring : (Category) Authoring Problems :
How do I have hints show up after more than 1 try?
The following problem code displays the hint for all tries greater than 1:


<problem >
<numericalresponse answer="5" >
<textline />
<hintgroup >
<hintpart on="default" >
<script type="loncapa/perl" >
$tries=&EXT("user.resource.resource.$external::part.tries");
</script >
<block condition="$tries > 1">
<startouttext />This is the hint text<endouttext />
</block >
</hintpart >
</hintgroup >
</numericalresponse >
</problem >
[Append to This Answer]
Previous: (Answer) How do I make a multi-part problem
Next: (Answer) How can I hard code the default maximum number of tries in a problem.
This document is: http://help.loncapa.org/cgi-bin/fom?file=327
[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.