Hi,
We have a setup in which there are problems without answer inputs, but only problemPanic.pl hints. We would like the score to be registered when the student presses the hint button. I believe this is the way it used to work in a previous webwork version. Does anyone know how to get this to work?
Here's an example scenario:
DOCUMENT();
loadMacros(qw(
PGstandard.pl
problemPanic.pl
));
TEXT(beginproblem());
BEGIN_TEXT
Press the button, hint should be registered
$PAR
\{ Panic::Button(label => "Request a Hint (25% Penalty)", penalty => .25) \}
END_TEXT
if ($panicked) {
BEGIN_TEXT
$PAR
${BBOLD}Hint:${EBOLD} Here's a hint!
$PAR
END_TEXT
}
Panic::GradeWithPenalty();
ENDDOCUMENT();
loadMacros(qw(
PGstandard.pl
problemPanic.pl
));
TEXT(beginproblem());
BEGIN_TEXT
Press the button, hint should be registered
$PAR
\{ Panic::Button(label => "Request a Hint (25% Penalty)", penalty => .25) \}
END_TEXT
if ($panicked) {
BEGIN_TEXT
$PAR
${BBOLD}Hint:${EBOLD} Here's a hint!
$PAR
END_TEXT
}
Panic::GradeWithPenalty();
ENDDOCUMENT();
Pressing the Request a hint button displays the green all of the answers above are correct", but 0% correct is registered.
Thanks!
-Albin