Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37670

Re: Implimenting formchangechecker.js?

$
0
0
by Joseph Rézeau.  

@Sam,

OK, let me explain this step by step.

1.- In a Quiz activity (e.g. with 2 multiple choice questions)

  1. Quiz settings for question behaviour: Adaptive
    1. Case #1
      1. Student enters quiz, looks at the questions, does not click anything. Then decides to leave quiz, e.g. clicks on Course link in the top Navigation bar.
      2. No Warning popup appears, because no action has been made on the HTML form.
    2. Case #2
      1. Student enters quiz, clicks one (or two) choices, but does not click anyone of the Check buttons. Then decides to leave quiz, e.g. clicks on Course link in the top Navigation bar.
      2. Warning popup appears, student confirms that he wants to leave page.
      3. Student re-attempts quiz. Clicks on the Continue the last attempt button. None of the previously clicked buttons is in a clicked state (nothing has been saved to the database, because no Action that saves anything has been taken yet.
    3. Case #3
      1. Now, student clicks one choice button (in question 1) and clicks the Check button. Relevant feedback message is displayed (correct or incorrect). Then student decides to leave quiz, e.g. clicks on Course link in the top Navigation bar.
      2. No Warning popup appears, because a) the Action corresponding to question 1 has been saved and no other action has been taken (on question 2).
    4. Case #4
      1. Now, student enters quiz once more : Question 1 shows previous choice has been made and feedback is displayed (those actions have been saved to the database so they can now be displayed).
    5. etc.
  2. Quiz settings for question behaviour:Deferred feedback
    1. Case #1: Same as Adaptive behaviour above.
    2. Case #2: Same as Adaptive behaviour above.
    3. Case #3: Student attempts or re-attempts quiz.
      1. Clicks a choice button in question 1 (and, maybe also question 2) and goes on the Next button or the Finish attempt link in the Quiz navigation block. On the Summary of attempt page, instead of clicking the Submit all and finish button, student decides to leave the quiz.
      2. No Warning popup appears, because all his previous Actions (answeres) have been saved.
    4. Case #4 Now, student enters quiz once more : Questions 1 (and 2) shows previous choices have been made (those choices have been saved to the database so they can now be displayed).

2.- In a Questionnaire activity

  1. All questions on a single page
    1. Case #1: Same as above, i.e. if no action taken at all on the form, no warning appears upon leaving page.
    2. Case #2: Same as above, i.e. If any button has been clicked, a popup warning is displayed.
    3. Note that since the responses to a one page Questionnaire are only saved to the database upon submitting that questionnaire, when resuming a questionnaire, none of the previously entered responses will re-appear.
    4. The same applies to a one-page questionnaire that is set to "Save and Resume": if student leaves the page without clicking the Save button, of course current responses will not be saved.
  2. Questions spread out on several pages (multi-pages questionnaire)
    Each time a student moves from one page to the next, his current responses are automatically saved.
    1. Case #3
      1. Student enters a questionnaire, answers some questions on page 1, then moves on to page 2.
      2. Student does not answer any question on page 2 and leaves questionnaire.
      3. Upon resuming questionnaire, previous responses are displayed on page 1.

To sum up:

1.- Both the quiz and questionnaire will display a popup warning upon leaving page if an action has been performed by student (click, etc.) which does not lead to something being saved to the database.

2.- When the activity is abandonned by leaving a page before the end of the activity, if an action has been performed on that last viewed page which has led to saving data to the database, then, upon resuming the activity, previously saved answers will be re-displayed, otherwise they will have been "lost".


Viewing all articles
Browse latest Browse all 37670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>