Moodle
  1. Moodle
  2. MDL-5583

allow teachers to specify certain fields in database activity as required

    Details

    • Rank:
      3228

      Description

      When creating a database, allow the teacher to specify whether a field must be filled in or not.

        Issue Links

          Activity

          Hide
          Laurent Domenech added a comment -

          This zip file contains the files that I modified to fix this, as well as entry MDL-6821

          Show
          Laurent Domenech added a comment - This zip file contains the files that I modified to fix this, as well as entry MDL-6821
          Hide
          Laurent Domenech added a comment -

          This file contains the fixes (for just this issue) made and tested on the latest 1.7.

          There is a cosmetic issue with the checkbox itself. It is centered on the Edit Field form. For some fields, it is not a problem, but for the fields with options, it will not be aligned with the other options. Aligning all options requires deeper changes in the code that I didn't feel confortable doing at this stage.

          Show
          Laurent Domenech added a comment - This file contains the fixes (for just this issue) made and tested on the latest 1.7. There is a cosmetic issue with the checkbox itself. It is centered on the Edit Field form. For some fields, it is not a problem, but for the fields with options, it will not be aligned with the other options. Aligning all options requires deeper changes in the code that I didn't feel confortable doing at this stage.
          Hide
          Anthony Borrow added a comment -

          Adding the ability to set a database activity field as required would be consistent behavior with other places in Moodle where such functionality is common place (user fields, etc.). I think this requires adding a required field to the database. One of the param fields could be used but I would not recommend it as they would be different depending on the field types. Peace - Anthony

          Show
          Anthony Borrow added a comment - Adding the ability to set a database activity field as required would be consistent behavior with other places in Moodle where such functionality is common place (user fields, etc.). I think this requires adding a required field to the database. One of the param fields could be used but I would not recommend it as they would be different depending on the field types. Peace - Anthony
          Hide
          Anthony Borrow added a comment -

          adding later versions to keep this issue from falling through the cracks

          Show
          Anthony Borrow added a comment - adding later versions to keep this issue from falling through the cracks
          Hide
          Sophia N added a comment -

          affects 2.0 as well.

          Show
          Sophia N added a comment - affects 2.0 as well.
          Hide
          Helen Foster added a comment -

          Thanks Sophia, adding the latest Moodle version as an affected version to keep this issue in the spotlight.

          Show
          Helen Foster added a comment - Thanks Sophia, adding the latest Moodle version as an affected version to keep this issue in the spotlight.
          Hide
          Nadav Kavalerchik added a comment -

          Any news regarding an implementation of this feature in Moodle 2.x ?

          Show
          Nadav Kavalerchik added a comment - Any news regarding an implementation of this feature in Moodle 2.x ?
          Hide
          Helen Foster added a comment -

          Hi Nadav,

          I haven't heard anything however I suggest we encourage more people to vote for it as the 2.4 roadmap includes 'many of your most-voted fixes from the tracker' http://docs.moodle.org/dev/Roadmap

          Show
          Helen Foster added a comment - Hi Nadav, I haven't heard anything however I suggest we encourage more people to vote for it as the 2.4 roadmap includes 'many of your most-voted fixes from the tracker' http://docs.moodle.org/dev/Roadmap
          Hide
          Damyon Wiese added a comment -

          I have implemented this for a client and am posting the patch here for master.

          This patch depends on MDL-32401

          Show
          Damyon Wiese added a comment - I have implemented this for a client and am posting the patch here for master. This patch depends on MDL-32401

            People

            • Votes:
              42 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

              • Created:
                Updated: