Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript error formChild is null on completion page #594

Closed
leonstr opened this issue Aug 22, 2024 · 2 comments
Closed

JavaScript error formChild is null on completion page #594

leonstr opened this issue Aug 22, 2024 · 2 comments

Comments

@leonstr
Copy link
Contributor

leonstr commented Aug 22, 2024

Steps to reproduce issue

  1. Create a course, enrol a teacher and student.
  2. As the teacher:
  3. Add a Questionnaire to the course.
  4. Click Add questions and add a question.
  5. As the student click on the Questionnaire on the course page, then click Answer the questions....
  6. As the student answer the question and click Submit questionnaire.

Expected results

No errors in browser console.

Actual results

Error on browser console: Uncaught TypeError: formChild is null.

Environment

This error occurs in Moodle 4.0, 4.1 and 4.2 with mod_questionnaire 2022092202. It occurs with Moodle 4.3.3 and later, and Moodle 4.4 with PR #584 (needed to get the JavaScript to run at all).

@leonstr
Copy link
Contributor Author

leonstr commented Aug 22, 2024

PR #595 has a proposed fix for this.

@mchurchward
Copy link
Contributor

Fixed in #595

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants