I am creating a form that has 2 fields of type textbox and password.
$mform->addElement('text', 'username', get_string('onepay_username', 'admin'), $editoroptions)->setValue( array('text' => $username) );
$mform->addRule('username', get_string('onepay_username_invalid', 'course'), 'required', null, 'client');
//$mform->setType('username', PARAM_RAW);
$mform->addElement('password', 'password', get_string('onepay_password', 'admin'), $editoroptions)->setValue( array('text' => $password) );
$mform->addRule('password', get_string('onepay_password_invalid', 'course'), 'required', null, 'client');
//$mform->setType('password', PARAM_RAW);
One problem I have encountered is the password field keeps being auto-filled.
Can anyone tell me how to disable auto-complete please? Thanks.