WeBWorK Problems

RadioButtons with several correct answers

Re: RadioButtons with several correct answers

by Rick Lynch -
Number of replies: 0

Thank you for your answers, Alex and Danny!

Yes, I would like to go the custom answer checker route with parserRadioButtons.pl as I'd like them only to be able to select one answer, but it would accept, say, if they select either the first or the second answer. However, I wasn't able to figure out how to with Radio Buttons. Typically, I'd do something like define the $altCorr answer and then do something like:

sub checker => {

  my ($corr,$stud,$a) = @_;

  return $stud == $corr || $stud == $altCorr;


or use parserOneOf.pl.

Any insights are greatly appreciated!