Issue Details (XML | Word | Printable)

Key: MDL-11400
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Martin Dougiamas
Reporter: Jens Gammelgaard
Votes: 7
Watchers: 4
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

A 'required' tick-box for fields is missing

Created: 22/Sep/07 04:17 PM   Updated: 25/Jul/09 06:49 AM
Return to search
Component/s: Database activity module
Affects Version/s: 1.9
Fix Version/s: 2.0

File Attachments: 1. Text File database_field_require.patch (18 kB)

Environment: Red Hat Linux
Issue Links:
Dependency
 

Database: MySQL
Participants: Anthony Borrow, Jens Gammelgaard, Martin Dougiamas and mert gokkaya
Security Level: None
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
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

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
mert gokkaya added a comment - 22/Sep/08 03:43 AM
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.

Anthony Borrow added a comment - 24/Jul/09 04:49 AM
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

Anthony Borrow added a comment - 24/Jul/09 04:54 AM
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

Anthony Borrow added a comment - 25/Jul/09 06:49 AM
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