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

Documentation and rules for form validations

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.6, 2.5.2, 2.6, 2.7, 3.4
    • Fix Version/s: None
    • Labels:
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_34_STABLE

      Description

      This has been created because MDL-42270 revealed various inaccuracies and misses in the moodleforms documentation and implementation.

      1) http://docs.moodle.org/dev/lib/formslib.php_Validation is missing completely about how to add built-in validation rules for groups.

      2) The documented strings suggested for use with addRule methods have been 100% ignored and, instead, other strings are being used. Decide.

      3) We should cover all the rules with some test, both server side (unit tests) and browser side (acceptance).

      That's all, let's manage the whole thing from here. Ciao

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stronk7 Eloy Lafuente (stronk7)
                Participants:
                Component watchers:
                David Mudrák (@mudrd8mz), Helen Foster, Jake Dallimore, Jun Pataleta
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: