Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.4, 3.6
-
MOODLE_34_STABLE, MOODLE_36_STABLE
-
MOODLE_36_STABLE
-
MDL-60820-master-workshopsubmissiontypes -
Description
Currently, the Workshop allows a teacher to specify a number of file attachments allowed, including 0. If file attachments are allowed, the student's submission form contains a "Submission content" editor field, and an "Attachment" file manager field. Neither of these fields are marked as required, but if a student doesn't enter data in either, they see a message that either one of the fields is required. A student may submit the form with just some text, even if the task requires a file to be uploaded, or vice versa. We have had feedback from our staff that students have been making this mistake.
The proposed fix:
- On the submissions settings form;
- Add a new field to the “Submission settings” section called “Type of materials accepted”.
- This has the options “Attachment only”, “Submission text area only”, and “Attachment and submission text area” (it could be a Select or Radio buttons).
- The default option is “Attachment and submission text area”.
- If “Submission text area only” is selected, all of the fields relating to file attachments are disabled.
- Remove the “0” option from the number of file attachments.
- On the Submission form itself;
- Only display the text field if “Submission text area only” or “Attachment and submission text area” was selected.
- Only display the file attachment field if “Attachment only” or “Attachment and submission text area” was selected.
- If displayed, each of these fields is marked Required using the standard moodleform method. The current validation to check one of them is set is removed from the validation() method.
Attachments
Issue Links
- blocks
-
MOBILE-2611 Workshop: Support new submission type setting
-
- Closed
-
- has been marked as being related by
-
MDL-64862 Submission types without Online text - no Submission grade to pass and Assessment grade to pass
-
- Closed
-