MX Survey Forum :: Rate matrix

This thread was displayed: 454 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
David Robinson
09-26-2005 18:42:46 GMT +2

 

The rate matrix question type has a default value of 3. Is it possible to have the matrix default  selection set to nothing. This way we can be sure the value for the question is what the user entered and not simple a default which the user left alone.

Many thanks,

Sion
Back | Reply | Quote | Top
David Robinson
09-26-2005 20:10:35 GMT +2

 

I think I may have a solution that fits our need: (change ans_rate.php from line 57)
<?php
  while (!$rsAnswers->EOF) {
        if (isset($HTTP_POST_VARS['scale_'.$id_squ][$rsAnswers->Fields('id_san')])) {
                for ($i=1;$i<6;$i++) {
                        $name = 'checked_'.$i;
                        if ($HTTP_POST_VARS['scale_'.$id_squ][$rsAnswers->Fields('id_san')]==$i) {
                                $$name = ' checked';
                        } else {
                                $$name = '';
                        }
                }
        } else {
                $checked_1 = '';
                $checked_2 = '';
                $checked_3 = '';
                $checked_4 = '';
                $checked_5 = '';
                }
?>    
Reply | Quote | Top
benjamin wende
02-15-2008 20:18:02 GMT +2

rechtsanwalt - friseur, frisur - ausbildung - stellenangebote - shopping

- rimowa


good solution. works for me.

thx

bennos


Reply | Quote | Top
© Adobe Systems Romania. All rights reserved.