Comments (4)
What I described is in 2.18.
I just checked devleop, and the graying out issue is not an issue there. However it still does not accept the correct answer selections.
from pg.
Checkboxes are supposed to work as a part answer. I will look at it.
from pg.
The issue with the checkboxes not graying out correctly was fixed in #930.
It turns out I also knew about the other issue, but I forgot about it. I also don't know how to fix it so that the following workaround is not needed. What you need to do is add checkTypes => 0
to the RadioMultiAnswer
object. So that would be
$rma = RadioMultiAnswer(
[
['\(H\) is a subspace.'],
[ '\(H\) is not a subspace because (check all that apply): %s', $checks ] ],
1,
checkTypes => 0,
labels => [ 'Yes', 'No' ]
);
Note that this is only needed when a CheckboxList
is used as a part answer, and the CheckboxList
only has one correct answer. The checkTypes => 0
option is not needed if there are more than one correct answer. (Also note that you don't need to use with
to add options to a RadioMultiAnswer
.)
Also note that the same thing is true for a CheckboxList
part answer of a MutliAnswer
object from the parserMultiAnswer.pl
macro. There you have to provide a custom checker, but the checker doesn't even get a chance to check the answers unless you set checkTypes => 0
when a CheckboxList
has only one correct answer.
The issue is that the correct answer always has type "List". A student answer is of type "String" in the case that only one checkbox is checked, but is also of type "List" if multiple checkboxes are checked.
from pg.
Fixed in #1011
from pg.
Related Issues (20)
- Bug when a matrix Math Object is reused as an answer HOT 10
- PGML.pl has lines that should have been removed. HOT 1
- Using upToConstant with complex numbers HOT 4
- keyboard issue with GraphTool HOT 8
- inconsistency in multiple choice macros HOT 4
- run-perltidy deletes .bak files
- Error answers now are escaped when they shouldn't be. HOT 1
- Cropping from pgfplots is not always working for final SVG output HOT 13
- variables declared with `my` lead to errors HOT 1
- student answers get spaces normalized
- iframeResizer, feedback popover, and mqeditor HOT 16
- Updating AnswerFormatHelp.pl HOT 5
- Viewing all correct answers at the same time HOT 4
- issue with `q` and parsing in PGML HOT 9
- PGML bold within a word HOT 3
- Macros whose first line starts with =head1 fail to load. HOT 6
- answer hints in multiple choice HOT 13
- CheckboxList reveals the correct answers HOT 3
- MathQuill toolbar placement in a relatively positioned parent - bug when in an RTL course. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg.