Question Set - remove show solution on results page?
Submitted by rickhumphries on Tue, 06/16/2015 - 00:38
Forums:
This may be more of a feature request than a bug, but not sure. I'm trying to remove the 'Show Solution' button on the results page of a question set but can't find the combination of options to produce this. I can remove the option from each individual question - but I don't want my students to be able to view the answers at all.
Is it possible?
Thanks
falcon
Tue, 06/16/2015 - 11:45
Permalink
It's currently not possible.
It's currently not possible. To achieve this you need to do some coding. Either you would add a pull request for this at the questionset repo or you remove it with css or js from a custom module using H5P's APIs.
rickhumphries
Tue, 06/23/2015 - 15:14
Permalink
Hi and thanks for the
Hi and thanks for the response. My skills aren't the best on the coding side of things. I've tried using CSS to remove the visibility of the button - I added:
a.qs-solutionbutton {
display: none;
}
But this didn't work. I also tried visibility: hidden; which didn't work either. If there's any other way you could point me in the right direction I'd be grateful. Thanks
falcon
Tue, 06/23/2015 - 15:16
Permalink
Ok, where did you add the css
rickhumphries
Tue, 06/23/2015 - 15:23
Permalink
I'm working in Drupal. I have
I'm working in Drupal. I have the H5P content set up on a site media.xyz.co.uk and have embedded it within another Drupal site courses.xyz.co.uk.
In courses.xyz.co.uk I have a module called CSS Injector set up, which adds CSS to the page. I added the CSS here
falcon
Tue, 06/23/2015 - 18:02
Permalink
Ok, I see. I'm afraid that
Ok, I see. I'm afraid that won't work. You should try to create a custom Drupal module at media.xyz.co.uk and add the css there via the function hook_h5p_styles_alter documented here: http://cgit.drupalcode.org/h5p/tree/h5p.api.php