ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Surveys Leave blank


  • 2005-10-15 15:41:16

    Surveys Leave blank

    Is there a way to turn off the "leave blank" feature in Likert scale questions? I'm measuring frequency of occurrence (never - always) so for my purposes "never" would be the only alternative for the "blank" end of the scale.

    Thanks!
    Chris Hutcheson

  • 2005-10-25 05:16:24

    Edit file tools/take_test.php

    If you want to turn off that feature for ALL the Likert questions in your installations so that applies to all the courses (i.e. system-widely), you should manually edit the file tools/take_test.php.
    Comment out lines 308 and 309 so they look like (1.5.1):

    308 /*
    309 echo $spacer;
    310 echo '<input type="radio" ....... </label>';
    311 */

    This will be enough to turn off this option when taking tests.

    You could wish to remove it when previewing test and viewing submissions. In that case youll also need to comment the appropriate lines in:
    * tools/tests/preview.php;
    * tools/tests/view_results.php;
    * tools/tests/results_all_quest.php.

  • 2005-10-25 09:46:31

    Surveys - Leave blank

    Thanks for your help! I'll try this out. Since this appeared to be the default answer as well does this now mean participants could skip questions? If so, is there a way to oblige them to answer all items?

    Thanks
    Chris

  • 2005-10-26 05:59:16

    Re: Surveys - Leave blank

    You can make a few more changes to your tools/take_test.php file. I'm not sure about exact numbering since our file has been modified.
    The file should look like (modifications are in bold):

    300 if ($i > 0) {
    301 echo $spacer;
    [b]302 $ch = '';
    303 } else {
    304 $ch = 'checked="checked" ';[/b]
    305 }
    306
    307 echo '<input type="radio" name="answers['.$row['question_id'].']" value="'.$i.'" id="choice
    _'.$row['question_id'].'_'.$i.'" [b]'.$ch.'[/b]/><label for="choice_'.$row['question_id'].'_'.$i.'">'.AT_print($row['choic
    e_'.$i], 'tests_answers.answer').'</label>';
    308 }
    309 }

    Don't forget to backup your original file first!

  • 2005-10-26 06:46:23

    Re: Surveys - Leave blank

    I'm sorry, those lines are wrong for the default installation. If you made no changes to tools/take_test.php, line numbering in the above fragment starts from 283.

    Anyway, test that before using. With these changes applied, first choices should now be always pre-checked.

  • 2005-10-26 11:18:57

    Leave blank

    Thanks very much for your help! I'll try this out.

    Cheers
    Chris