WeBWorK Problems

Can we have multiple choices appear in the order it is listed in the problem source

Can we have multiple choices appear in the order it is listed in the problem source

by Raghu Gompa -
Number of replies: 1

Dear friends,

Can we have multiple choices appear in the order it is listed in the problem source?

I want to use new_checkbox_multiple_choice();  Is there any other function which will keep the order of choices.

In reply to Raghu Gompa

Re: Can we have multiple choices appear in the order it is listed in the problem source

by Alex Jordan -

If your version of WeBWorK is newer, use parserCheckboxList.pl:
https://github.com/openwebwork/pg/blob/main/macros/parsers/parserCheckboxList.pl
And options are kept in the original order unless you encase them in an additional pair of brackets.

If you have to use the older tool, you can use the makeLast method to force the options to be displayed in a desired order:
https://webwork.maa.org/wiki/MultipleSelectProblems