-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Students unable to drag and drop using gapfill question #110
Comments
Thanks for letting me know and for all the detail. That doesn't surprise me greatly, it is probably the javascript security bit that is causing the problem. I will investigate. |
Can confirm the problem, when javascript security is activated the words cannot be dragged by students. |
I have investigated this further and had discussions with the senior developers at Moodle HQ Two of the people who responded were Brett Dalton and also Tim Hunt who is the main architect of the Moodle Quiz module. My interpretation of the responses is that other quiz questions do not use standard HTML drag and drop so the security mode does not interfere. My code uses standard HTML drag and drop capabilities and so is broken by that security mode. I have spent some time to work around this but without success and I suspect I may never get it to work in that mode with core Moodle. My apologies for not being able to find a solution, but I will leave this ticket open for the moment in the hope of finding a way around this problem. |
@marcusgreen ah, what a pity! This is a great question type, and easy to setup. You've done great! |
Yes, there should be some mitigation/warning. I would not have thought of switching to the dropdowns as an option. That is a good idea, I will see if I can think of a way of implementing it. I am currently very focussed on this https://fosstodon.org/@marcusgreen/111643206243001461 until the end of February. |
@marcusgreen I understand. Do you know what/where would need to be changed in the database to change all old dragdrop questions to work as dropdown? I have found the table mdl_question_gapfill and tested just changing the value for answerdisplay from dragdrop to dropdown in a test question, but that wasn't enough. |
answerdisplay should work, but only for a new attempt at a quiz. |
Sorry... I created a dragdrop question and changed the value for answerdisplay from dragdrop to dropdown in table mdl_question_gapfill. Added the question to a new quiz, but the answer options was still dragdrop. So, there's something more that need change. |
Describe the bug
When a quiz uses the setting: Extra restrictions on attempts / Browser security = Full screen pop-up with some Javascript Security. A student attempting the quiz is not able to drag and drop
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Student should be able to drag and drop.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: