Quantcast
Viewing all articles
Browse latest Browse all 9615

Re: Setting Course level assignment defaults

by Dual Cube.  

Dear William,

I am afraid, there are no such default settings for assignment as per your requirements. To enable such settings you have to make some changes in the coding.

For example if you want the "online editor" checkbox to be checked by default, you have to edit this in php code. Go to the mod/assign or mod/assignment folder and find the appropriate check box for the online editor (you will get this in mod_form.php or edit_form.php. Search with "$mform->addElement('checkbox'… " and suchlike) and add the code,

 $mform->setDefault('replace_with_the_online_editor_chekbox_name', 1); below the checkbox code.

 Here I’m providing an example:

$mform->addElement('checkbox', 'onlineditor', get_string('online', 'assign'));

$mform->setDefault('onlineditor', 1);  

//add this line, the 1 means checkbox will always be checked//

Hope this works for you.

Warm regards

Purnendu (developer)

DualCube


Viewing all articles
Browse latest Browse all 9615

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>