• Resolved zefdesign

    (@zefdesign)


    Currently you have to click the ‘Go Ahead’ button each time to advance, with lots of questions this gets cumbersome. Is there a way I can edit the code so you advance upon clicking the radio button? (and no call to action is necessary)

    On a side note, I am so excited to have found this plugin, it’s exactly what I was looking for. So thank you.

    https://www.ads-software.com/plugins/chained-quiz/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Bob

    (@prasunsen)

    You can add some javascript on the “onclick” event. I will consider adding this as configuration in the plugin soon.

    Thread Starter zefdesign

    (@zefdesign)

    So you mean add some javascript into an “onclick” on the radio button “<input>?”

    What javascript call would it need to be making to advance to the next step?

    thanks for your help.

    Plugin Author Bob

    (@prasunsen)

    You need to copy the javascript that is on the “next” button:

    onclick=”chainedQuiz.goon(<?php echo $quiz->id?>, ‘<?php echo admin_url(‘admin-ajax.php’)?>’);”

    Thread Starter zefdesign

    (@zefdesign)

    And I need to place that on the radio button in “question.php”?

    Thanks for your patience.

    Thread Starter zefdesign

    (@zefdesign)

    <input type='$type' name='$name' onClick=\"chainedQuiz.goon(".$choice->id.", 'https://pitch.howwillitlook.com/wp-admin/admin-ajax.php')\" value='".$choice->id."'> ?

    Thread Starter zefdesign

    (@zefdesign)

    Whoops, sorted it now ?? thank you, I’ll let you know when it’s finished.

    Plugin Author Bob

    (@prasunsen)

    Your thing is now done in 0.6.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Make radio buttons act as the button’ is closed to new replies.