I want moodle feedback to select non-anonymous option programmatically. How can i do that? Below is the code:
$options=array();
$options[1] = get_string('anonymous', 'feedback');
$options[2] = get_string('non_anonymous', 'feedback');
$mform->addElement('select',
'anonymous',
get_string('anonymous_edit', 'feedback'),
$options);
Any reference or help will be much appreciated.
Regards