Moodle
  1. Moodle
  2. MDL-11400

A 'required' tick-box for fields is missing

    Details

    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Rank:
      313

      Description

      Hi,

      Now you can create a field for uploading files and the user can give a name to the file but still forgetting to upload a file since it can not be set as required - to upload the file.

      Can you please implement that improvement before the stable version of 1.9 arrives?

      Thanks,

      BR
      Jens

        Issue Links

          Activity

          Hide
          mert gokkaya added a comment -

          Could we expand this a required field tick for all fields? or an option like require all? We use database for a conduct log application. We are trying to enhance it as much as we can till we put it together as a block.

          Show
          mert gokkaya added a comment - Could we expand this a required field tick for all fields? or an option like require all? We use database for a conduct log application. We are trying to enhance it as much as we can till we put it together as a block.
          Hide
          Anthony Borrow added a comment -

          Well before having the tickbox I suspect we should implement this and I agree that it makes sense to implement it for all of the field types. I've linked this to MDL-5583 so hopefully we can make this happen. Peace - Anthony

          Show
          Anthony Borrow added a comment - Well before having the tickbox I suspect we should implement this and I agree that it makes sense to implement it for all of the field types. I've linked this to MDL-5583 so hopefully we can make this happen. Peace - Anthony
          Hide
          Anthony Borrow added a comment -

          Martin - I added you as a watcher to this just to get your thoughts on modifying adding a required field to the database_fields table. Peace - Anthony

          Show
          Anthony Borrow added a comment - Martin - I added you as a watcher to this just to get your thoughts on modifying adding a required field to the database_fields table. Peace - Anthony
          Hide
          Anthony Borrow added a comment -

          Here is a non-functional patch but at least now we have the checkbox to select a required field and a field in the data_fields table called required to store the data. So now we can mark a field as required and I have started to do some of the work to make it show up as being a required field but have not made efforts to figure out the best way to implement it so that the actual enforcement takes place. I was playing with the idea of using mforms but not sure how that would work or not with css and the templating mechanism. In any case, I welcome any input and help with developing this functionality of being able to require a particular field. Peace - Anthony

          Show
          Anthony Borrow added a comment - Here is a non-functional patch but at least now we have the checkbox to select a required field and a field in the data_fields table called required to store the data. So now we can mark a field as required and I have started to do some of the work to make it show up as being a required field but have not made efforts to figure out the best way to implement it so that the actual enforcement takes place. I was playing with the idea of using mforms but not sure how that would work or not with css and the templating mechanism. In any case, I welcome any input and help with developing this functionality of being able to require a particular field. Peace - Anthony
          Hide
          Tim Hunt added a comment -

          I think this is a duplicate of MDL-5583.

          Show
          Tim Hunt added a comment - I think this is a duplicate of MDL-5583 .
          Hide
          Anthony Borrow added a comment -

          Tim - Yes, in essence MDL-5583 and MDL-11400 are duplicates; however, MDL-11400 is requesting the required check box and MDL-5583 is requesting the functionality so I had linked them as being related but not duplicates; however, would have no objections to linking them. I am hoping to be able to take some time over the upcoming holidays to come back to this (and many other issues). Peace - Anthony

          Show
          Anthony Borrow added a comment - Tim - Yes, in essence MDL-5583 and MDL-11400 are duplicates; however, MDL-11400 is requesting the required check box and MDL-5583 is requesting the functionality so I had linked them as being related but not duplicates; however, would have no objections to linking them. I am hoping to be able to take some time over the upcoming holidays to come back to this (and many other issues). Peace - Anthony
          Hide
          Eloy Lafuente (stronk7) added a comment -

          NOTE: This issue was assigned to the STABLE backlog without complete triaging process. Marking it as triaged, but with this note for future reference.

          Show
          Eloy Lafuente (stronk7) added a comment - NOTE: This issue was assigned to the STABLE backlog without complete triaging process. Marking it as triaged, but with this note for future reference.

            People

            • Votes:
              14 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: