<!-- Gap fill form starts here --> <?php echo $this->render->html('gap-start', array('exercise' => $exerciseCode)); ?> <ol class="alpha"> <li> Most of us became salesmen when we left university. <br> Most of us have <?php echo $this->render->html('gap', array('set' => '')); ?> <li> Our current manager started working here ten years ago. <br> Our current manager has <?php echo $this->render->html('gap', array('set' => '')); ?> <li> I haven't heard from Sarah for a couple of months <br> The last <?php echo $this->render->html('gap', array('set' => '')); ?> <li> I used to find computers difficult before I started taking these lessons. <br> Since <?php echo $this->render->html('gap', array('set' => '')); ?> <li> Michael Owen is the best player I've seen so far in this competition. <br> I've yet <?php echo $this->render->html('gap', array('set' => '')); ?> </ol> <?php echo $this->render->html('gap-end', array('exercise' => $exerciseCode)); ?> <!-- Gapfill form ends here -->
We have multiple possibilities for gap fills now. Next we need to show which are correct and incorrect on the page. But only show this if the attempt has aged by a set amount, otherwise they will keep guessing. We need to add some settings Perhaps $this->gapfillSettings to biscuits for things related to the LMS. Things such as :
A simple and effective way to add more valid answers to a gap fill, would be for teachers to see a button alongside a students 'incorrect' answer. The button would ask the teacher to click to accept this as a possible answer. Clicking this button will add a row for that question and store the student response as a correct answer. In the case of 'half right' answers, a percentage value can be given to that response so that only a certain percentage of the full score is given.
The GAP fill HTML examples should also appear on Testcard
In version 6f we will set a limit of only one gap fill form per page. This means that the system can set the ids automatically.
Required for Gapfills and Multiple Choice and text inputs. In each case the original content is composed of @tokens that are rendered into HTML inputs and forms etc., by the tokenMethods.php method in biscuitBarrel function replacements($inString)
MySQL database tables (The actual table names will be prefixed according to the application prefix defined in config )
The actual correct possible answers Not the aubmitted attempts
check the page source to see whether this script will be loaded. If not then add this script using $this->addJS('biscuits-gapfill.js',true);
The function setGaps() in biscuits-gapfill.js should
be executed on document ready / load
This can be done by adding this line to your PHP view file