Support » Plugin: HD Quiz » Multiple answers

  • Resolved wynn1964


    Hi, is it possible to have more than one correct answer to a question, or assign differing points to an answer?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Földesi, Mihály


    I have just tired on the newest verison.

    My point of view:
    Unfortunatelly, no.

    I think it needs an upgrade of plugin or you do just some tricks in the sentences of Questions’ options…

    Plugin Author Harmonic Design


    hi wynn1964,
    this is not possible natively, but if you know some basic jQuery, then you could “fake” it.

    This will only work if you are not randomizing the question order or answer order.

    The answer ordering mechanism is hdq_option_[question #]_[answer #] where [question #] is the nth question on the page and [answer #] is the nth answer for that question.

    So for example, hdq_option_2_4 is the ID for the fourth answer of the second question.

    Knowing this, you can add some jQuery to the page to set that answer to the “correct one”.

    Let’s say that the first answer of your third question is the “correct” one, but you also want to allow the second answer to be valid as well. Here is some example code that could accomplish this (note, I have not tested this code yet)

    jQuery("#hdq_option_3_2").val(1); // set third question second answer as correct

    That should set the answer as valid, so the user could select either answer 1 or answer 2 and still be right.

    Thread Starter wynn1964


    That’s cool. I can get by with that. Anything I’m not sure about, I can google.

    Many Thanks for the great support.

    Where to put this Code or a modified one?:
    jQuery(“#hdq_option_3_2”).val(1); // set third question second answer as correct

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiple answers’ is closed to new replies.