Hopefully someone in the community will be able to pop in and assist you here. I'm not sure that it's popular, but you may want to check out this similar forum thread.
the SCORM datamodel doesn't give a lot of options for this - but the student_id variable is populated with the Moodle username so if your site uses e-mail addresses as the username you could use that.
Alternatively you could probably modify the Moodle code to store the e-mail address in the student_id field passed in the SCORM datamodel instead of the username - but any changes to code involve a level of risk unless you have someone with software development skills to help.
"Unfortuantely the SCORM datamodel doesn't provide for much flexibility around this - the only 2 variables passed related to the student identity are "student_name" and "student_id" -
If you are using e-mail in the username field you might be able to just use that. Alternatively you could change $USER->username to $USER->email and see if that works - make sure you backup the files before making any changes though."
is studentid same as studentname ? i can't change the student name. can i set the studentid as email ?
5 Replies
Hi Abhishek!
Hopefully someone in the community will be able to pop in and assist you here. I'm not sure that it's popular, but you may want to check out this similar forum thread.
the SCORM datamodel doesn't give a lot of options for this - but the student_id variable is populated with the Moodle username so if your site uses e-mail addresses as the username you could use that.
Alternatively you could probably modify the Moodle code to store the e-mail address in the student_id field passed in the SCORM datamodel instead of the username - but any changes to code involve a level of risk unless you have someone with software development skills to help.
appreciate your feedback.
how can i modify so that student id includes student email?
I gave some possible solutions in a reply to your post on moodle.org:
https://moodle.org/mod/forum/discuss.php?d=333318#p1342758
"Unfortuantely the SCORM datamodel doesn't provide for much flexibility around this - the only 2 variables passed related to the student identity are "student_name" and "student_id" -
the "student_id" field for SCORM 1.2 packages is currently configured to pass the username:
https://github.com/moodle/moodle/blob/master/mod/scorm/datamodels/scorm_12lib.php#L134
If you are using e-mail in the username field you might be able to just use that. Alternatively you could change $USER->username to $USER->email and see if that works - make sure you backup the files before making any changes though."
is studentid same as studentname ? i can't change the student name. can i set the studentid as email ?
This discussion is closed. You can start a new discussion or contact Articulate Support.