Jump to ContentJump to Navigation/Login
` ` ` ` ` `

[Register]

Occasional ATutor release updates


No Members Logged In

(3 guests in past 15 min.)

Access Understanding Web Accessibility to learn about accessibility, or Register to take the course for FREE.

Support Forums

ATutor Support

Surveys - Leave blank


You must be signed-in to post.

AuthorSubject
  Page: 1
cbh
Subject: Surveys - Leave blankQuote this post in your reply
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
Posted: 2005-10-15 15:41:16
IndieRect

Avatar for IndieRect
Subject: Edit file tools/take_test.phpQuote this post in your reply
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 you´ll also need to comment the appropriate lines in:
* tools/tests/preview.php;
* tools/tests/view_results.php;
* tools/tests/results_all_quest.php.
Posted: 2005-10-25 05:16:24
cbh
Subject: Surveys - Leave blankQuote this post in your reply
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
Posted: 2005-10-25 09:46:31
IndieRect

Avatar for IndieRect
Subject: Re: Surveys - Leave blankQuote this post in your reply
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;
302 $ch = '';
303 } else {
304 $ch = 'checked="checked" ';

305 }
306
307 echo '<input type="radio" name="answers['.$row['question_id'].']" value="'.$i.'" id="choice
_'.$row['question_id'].'_'.$i.'" '.$ch.'/><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!
Posted: 2005-10-26 05:59:16
IndieRect

Avatar for IndieRect
Subject: Re: Surveys - Leave blankQuote this post in your reply
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.
Posted: 2005-10-26 06:46:23
cbh
Subject: Leave blankQuote this post in your reply
Thanks very much for your help! I'll try this out.

Cheers
Chris
Posted: 2005-10-26 11:18:57
 Page: 1

You must be signed-in to post.