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

Form does not get focus when error field is in collapsed section

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Go to course and add a quiz
      2. On a quiz add page fill in just the name
      3. Expand the "Grade" section and type some text into grade to pass field (if you're on Chrome and save passwords the field could be filled with a username already)
      4. Collapse the section
      5. Submit the form
        • The collapsed section with an error should expand and form should be focused on the grade error

      Try this also on different forms with different fields and make sure that everytime a collapsed section that contains error, it's expanded and focused

      Show
      Go to course and add a quiz On a quiz add page fill in just the name Expand the "Grade" section and type some text into grade to pass field (if you're on Chrome and save passwords the field could be filled with a username already) Collapse the section Submit the form The collapsed section with an error should expand and form should be focused on the grade error Try this also on different forms with different fields and make sure that everytime a collapsed section that contains error, it's expanded and focused
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-49783-master
    • Sprint:
      Team Beards Sprint 6

      Description

      When creating a new activity and there's an error in the field which is in collapsed section and user tries to save the form, nothing happpens. It would be nice to expand the section with error and focus on it. This sometimes happens when browsers autocomplete sections, which are not even expanded by user, who's then confused, because the form won't submit and nothing happens.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mastnym Martin Mastny
              Reporter:
              mastnym Martin Mastny
              Peer reviewer:
              Damyon Wiese
              Integrator:
              Andrew Nicols
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Barbara Ramiro, Bas Brands
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/May/15