WordPress.org

Ready to get started?Download WordPress

Forums

Watu
[resolved] Quiz form not submitting, odd submit buttons (9 posts)

  1. jjoven
    Member
    Posted 1 year ago #

    I've created a quiz and have included it on a page. It's a 30 question quiz with all the questions on one page.

    The first issue I'm seeing is that there is no form action on the form. The form tag shows up as:

    <form action="" method="post" class="quiz-form" id="quiz-1">

    The next issue is that this is a one page quiz but at the bottom, the user sees this:

    <p>Question <span id='numQ'>1</span> of 30</p>
    <input type="button" id="next-question" value="Next >" />

    <input type="button" name="action" onclick="Watu.submitResult()" id="action-button" value="Show Results" />

    And neither button (next question or show results) produces any action when used. Any guidance is greatly appreciated.

    Thank you.

    http://wordpress.org/extend/plugins/watu/

  2. prasunsen
    Member
    Plugin Author

    Posted 1 year ago #

    URL please. You should always include your URL when requesting support.

  3. jjoven
    Member
    Posted 1 year ago #

    Sorry about that: http://fet.masscap.org/?page_id=40

    Thank you.

  4. prasunsen
    Member
    Plugin Author

    Posted 1 year ago #

    You have this in your header:

    <script type="text/javascript" src="/js/head.js"></script>

    But head.js is not openning, it's redirecting to a web page. This causes javascript fatal error which makes all further javascript on the page not working (including Watu's javascript).

    Please fix your theme, the problem is not in Watu.

  5. jjoven
    Member
    Posted 1 year ago #

    head.js is removed but quiz still doesn't submit.

  6. prasunsen
    Member
    Plugin Author

    Posted 1 year ago #

    Now the watu script is not there at all.
    You are probably not calling wp_head() in your theme.

    Please, fix your theme. This is not a Watu issue. We cannot support individual issues caused by improperly written themes.

  7. jjoven
    Member
    Posted 1 year ago #

    Thank you.

  8. prasunsen
    Member
    Plugin Author

    Posted 1 year ago #

    If you add the watu CSS too (I see it's not there now), you'll get the buttons properly as well.

  9. jjoven
    Member
    Posted 1 year ago #

    Got it. This is my first time having to ever customize a theme for WP. Thank you for your patience.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic