Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3687

Add HTML5 form validation to the user-interface for Calculated Objects question type

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE

      Description

      Initially for the student-interface...

      Attributes on the 'Answer' text <input> box:

      • required
      • pattern = "-?\d {1,3}

        (\.\d*)?"

      • title - hint = "I'm expecting a number"
      • native support in recent Firefox, Chrome, Safari and Opera,
      • it will degrade gracefully in older browsers,
      • it will be configurable, so that it can be disabled (just in case - I don't think you'll want to disable).

        Attachments

          Activity

            People

            Assignee:
            nfreear Nick Freear
            Reporter:
            nfreear Nick Freear
            Participants:
            Component watchers:
            Nick Freear
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: