Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nadams_at_bulbouscell.com

    (@nadams_at_bulbouscellcom)

    This fix works with both plugin v0.7 and v0.7.1

    Same problem here – after debugging the plugin so that I could actually have essay questions that would not jump to the end of the quiz as soon as the first one was answered (line 144 of models/question.php needs the SQL call to read $answer = $wpdb->get_var($wpdb->prepare("SELECT id FROM ".CHAINED_CHOICES ." WHERE question_id=%d", $question->id)); instead of $answer = $wpdb->get_var($wpdb->prepare("SELECT id FROM ".CHAINED_CHOICES ."WHERE question_id=%d AND choice LIKE %s", $question->id, $answer)); otherwise it searches for a choice equalling whatever the user typed. NB This fix requires the user to name their text box otherwise is returns NULL as nameless textboxes do not feature in the chained_choices table), now when I check my survey results, I find that all my text input has become 0.00 when I look at it from View Submissions-> View details

    From checking the chained_user_answers table, I can see that the data is being recorded for the text based questions, just not displayed in the View Submissions -> View Details page.
    For all other question types, it seems to work fine.

    If possible, I might also suggest a toggle to hide images for the View Details page – if you include big images in your questions, it makes it very hard to read the results.

Viewing 2 replies - 1 through 2 (of 2 total)