WordPress.org

Support

Support » Plugins and Hacks » WP Survey And Quiz Tool » no radio type in survey questions?

no radio type in survey questions?

Viewing 6 replies - 1 through 6 (of 6 total)
  • @jircas

    open the file lib/Wpsqt/System.php

    and look for these lines:

    public static function getSurveyQuestionTypes(){
          $questions = array('Multiple Choice' => 'Multiple choice question with mulitple correct answers.',

    Then add this line:
    'Single' => 'Multiple choice question with single correct answers.',

    That option should then appear in the surveys.

    Noel

    Thank you very much! blizcreak. It works well.

    great!

    Hi @jircas,
    the ‘trick’ works well during the ‘collection’ phase of the survey but makes the pages related to the results very unstable and sometimes faulty…
    Any other suggestion?

    Thanks

    SORRY!!!!
    I mentioned the wrong user…
    I was obviously writing to @blizcreak

    mikelbu

    @mikelbu

    For a working result page you also have to modify

    \pages\admin\surveys\result.total.script.php

    and

    \pages\admin\surveys\result.total.script.site.php.

    There you just have to add the question type “Single”:

    <?php if ( $question['type'] == "Multiple Choice" ||
    					   $question['type'] == "Dropdown" || $question['type'] == "Single" ) {
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘no radio type in survey questions?’ is closed to new replies.
Skip to toolbar