I have been working on Version 2.0 of the Gapfill question type and the headline feature is single use draggables, i.e. options are removed from the list once they have been used.
You can test the code for this from the master branch on github from
I have been working on Version 2.0 of the Gapfill question type and the headline feature is single use draggables, i.e. options are removed from the list once they have been used.
You can test the code for this from the master branch on github from
This new update is now breaking some of my quizzes. I have some quizzes that allow duplicates. I make sure to "uncheck" single draggables, but it seems to ignore it and remove the item. So now I don't have duplicates to use. How can I enable that feature back?
$question->initjs((Boolean) $question->singleuse);
And yes, your code change fixes the problem.
Thanks a lot for your great work and to Mrs Summers who spotted the issue.
This is very welcome. However, it seems to result in a problem:
If two blanks have the same answer, only one instance will show among the options, and when it is moved to one of the blanks, it is removed from the list of options and therefore there is no way the other blank could be filled, unless you type the answer in, which would be confusing.
Thank you for your feedback, it is really interesting to see how my question types are used. One solution may be to turn of the Single Use Draggables option.
I was quite pleased to be able to deliver it.
And we all do appreciate it a lot!
I suspect very few people use the [thisword|thatword] structure.
I think [thisword|thatword] is an essential option. I use it very frequently with gapfill questions (as opposed to dropdown/dragdrop). I would say it is probably more common than one might think (but no data to back up my haunch).
You would encourage me in this effort if you were willing to supply a bank of your finest questions...
Added to my already totally and disastrously overwhelming to-do list...
Hello again Marcus!
You see... you made the fatal mistake of replying to me in another discussion and now I am again on your back!
Any developments regarding the following?
Would it be possible - in a future version - to either have two instances on the list of options (under,at,on,on,in) or - ideally - a single instance that remains on the list after being dragged onto a blank because it is still needed for another blank?