The "Start quiz" button generated from which is in the form quiz_start_quiz_button_form() should use type "submit" not "button". Such as

function quiz_start_quiz_button_form($form, &$form_state, $node) {
  $form = array();
  $form['#action'] = url("node/$node->nid/take");
  $form['button'] = array(
    '#type' => 'button', // <=============== This should be changed to "submit"
    '#value' => t('Start quiz'),
  );
  return $form;
}

If you override the theme_button() to use button tag instead of input the form will not submit.

Comments

mohammed j. razem’s picture

StatusFileSize
new402 bytes

Here's the simple patch.

mohammed j. razem’s picture

Status: Active » Needs review
varshith’s picture

Status: Needs review » Reviewed & tested by the community

Had the same problem.
It has to be "submit"

sivaji_ganesh_jojodae’s picture

Status: Reviewed & tested by the community » Fixed

Thanks. Patch committed to git.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

sivaji_ganesh_jojodae’s picture

I experienced this bug today. If it is of type button the form submit handlers are not called :(

sivaji_ganesh_jojodae’s picture

Issue summary: View changes

Fixed the php code description

  • Commit 65ede89 on 7.x-4.x, 7.x-5.x authored by Mohammed J. Razem, committed by sivaji:
    Issue #1904228 by Mohammed J. Razem: Fixed 'Start quiz' button not...

  • Commit 65ede89 on 7.x-4.x, 7.x-5.x, quiz-pages authored by Mohammed J. Razem, committed by sivaji:
    Issue #1904228 by Mohammed J. Razem: Fixed 'Start quiz' button not...

  • Commit 65ede89 on 7.x-4.x, 7.x-5.x, quiz-pages, 2269219 authored by Mohammed J. Razem, committed by sivaji:
    Issue #1904228 by Mohammed J. Razem: Fixed 'Start quiz' button not...

  • Commit 65ede89 on 7.x-4.x, 7.x-5.x, 2269219 authored by Mohammed J. Razem, committed by sivaji:
    Issue #1904228 by Mohammed J. Razem: Fixed 'Start quiz' button not...