WordPress.org

Ready to get started?Download WordPress

Forums

WP Survey And Quiz Tool
no radio type in survey questions? (7 posts)

  1. jircas
    Member
    Posted 1 year ago #

    Why does the plugin provides single choice for quiz questions, but not for survey questions. In some time, I need single choice for survey questions. currently there are only multiple choice, dropdown, likert, likert matrix and free text.

    http://wordpress.org/extend/plugins/wp-survey-and-quiz-tool/

  2. blizcreak
    Member
    Posted 1 year ago #

    @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

  3. jircas
    Member
    Posted 1 year ago #

    Thank you very much! blizcreak. It works well.

  4. bisadmin
    Member
    Posted 10 months ago #

    great!

  5. Gargoyle297
    Member
    Posted 9 months ago #

    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

  6. Gargoyle297
    Member
    Posted 9 months ago #

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

  7. mikelbu
    Member
    Posted 8 months ago #

    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" ) {

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.