Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-84872

Question Type "calculated": Answer Box too small

    • MOODLE_404_STABLE
    • MDL-84872-main
    • Hide
      1. Create a course or select a pre existing course 
      2. Create a quiz or select a pre-existing quiz 
      3. Navigate to Questions 
      4. Click Add > + a new question 
      5. Select Calculated 
      6. Give the question
      7. Set the question text to:
        1. Correct Answer Formula= {base}*{height}
      8. Scroll down to Answers 
      9. Set the Answer 1 formula to: 
        1. {base}

          *{height}

      1. Set the grade to 100% 
      2. Click Save Changes 
      3. Navigate through the remaining menus until the Calculated question is added 
      4. Click Add > + a new question 
      5. Select Numerical 
      6. Navigate through the menus untiul Numerical question is added 
      7. Navigate to Quiz at the top left 
      8. Click Preview Quiz
      9. Compare the input field between the two questions 
        1. My updated fields can be seen in Calculated ansswer box.PNG and Numerical answer box.PNG
      10. Verify the input fields are the same width
      11. Ensure cache is cleared if they are different lengths 

       

      Show
      Create a course or select a pre existing course  Create a quiz or select a pre-existing quiz  Navigate to  Questions   Click  Add > + a new question   Select Calculated   Give the question Set the question text to: Correct Answer Formula= {base}*{height} Scroll down to Answers  Set the Answer 1 formula to:  {base} *{height} Set the grade to 100%  Click  Save Changes   Navigate through the remaining menus until the Calculated question is added  Click  Add > + a new question   Select  Numerical   Navigate through the menus untiul Numerical question is added  Navigate to Quiz  at the top left  Click  Preview Quiz Compare the input field between the two questions  My updated fields can be seen in Calculated ansswer box.PNG and Numerical answer box.PNG Verify  the input fields are the same width Ensure cache is cleared if they are different lengths   
    • Hide

      Code verified against automated checks with warnings.

      Checked MDL-84872 using repository: https://github.com/Jayce0808/moodle.git

      Should these errors be fixed?

      Built on: Tue May 20 10:30:06 UTC 2025

      Show
      Code verified against automated checks with warnings. Checked MDL-84872 using repository: https://github.com/Jayce0808/moodle.git main (0 errors / 1 warnings) [branch: MDL-84872-main | CI Job ] overview (0/1) , phplint (0/0) , phpcs (0/0) , js (0/0) , css (0/0) , phpdoc (0/0) , commit (0/0) , savepoint (0/0) , thirdparty (0/0) , externalbackup (0/0) , grunt (0/0) , shifter (0/0) , mustache (0/0) , gherkin (0/0) , Warn: The MDL-84872 -main branch at https://github.com/Jayce0808/moodle.git has not been rebased recently (>20 days ago). Should these errors be fixed? Built on: Tue May 20 10:30:06 UTC 2025

      The answer Box for Calculated is too small for bigger numbers with alot of digits. If compared to question type numerical it is a lot smaller. With longer numbers (more digits) the student needs to scroll horizontally in this box which makes it more prone to accidental mistakes.

       

      Suggestion: Make the answer box bigger, for example like numerical questions.

       

      Example of both question types is attached.

        1. calculated.jpg
          38 kB
          Samuel Fischer
        2. numerical.jpg
          22 kB
          Samuel Fischer
        3. Calculated answer box.PNG
          19 kB
          Jayce Birrell
        4. Numerical answer box.PNG
          19 kB
          Jayce Birrell

            jayce.birrell@moodle.com Jayce Birrell
            samuel.fischer Samuel Fischer
            Daniel Ziegenberg Daniel Ziegenberg
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 4 hours, 43 minutes
                2d 4h 43m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.