We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents be05d8c + edd8201 commit ce5fe97Copy full SHA for ce5fe97
mod/workshop/submission_form.php
@@ -42,6 +42,7 @@ function definition() {
42
$mform->addElement('text', 'title', get_string('submissiontitle', 'workshop'));
43
$mform->setType('title', PARAM_TEXT);
44
$mform->addRule('title', null, 'required', null, 'client');
45
+ $mform->addRule('title', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
46
47
$mform->addElement('editor', 'content_editor', get_string('submissioncontent', 'workshop'), null, $contentopts);
48
$mform->setType('content', PARAM_RAW);
0 commit comments