• Hi, this is a great plugin, thank you! I’m currently just playing with it to see what it can do, and there’s one little thing I’d like to change. At the end when the answers are shown I’d like to disable the radio buttons since at that point people can’t change their answers anyhow.

    Is there a function I can plug into my theme to make that happen? Or would that have to be modified inside the plugin file?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chayton

    (@chayton)

    I just noticed that it does disable the radio buttons if you have the “Check my answer” after each question, and that works fine. In my case I was going to display all of the answers at the end, where the radio buttons are still enabled.

    Thread Starter chayton

    (@chayton)

    Actually I figured out a temporary fix and thought I’d post in case anyone else wondered how to do it. I added this line:

    $('input').prop('disabled', true);

    on line 629 in slickQuiz.js so that section reads like this:

    $quizArea.fadeOut(300, function() {
    // If response messaging is set to show upon quiz completion, show it now
    if (plugin.config.completionResponseMessaging) {
    $('input').prop('disabled', true);
    $(_element + ' .button:not(' + _tryAgainBtn + '), ' + _element + ' ' + questionCount).hide();
    etc etc

    Which may not be the correct way to do this, but at least it works for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable radio buttons when answers are shown?’ is closed to new replies.