Forum Discussion
AndreaBorsoi-1d
4 years agoCommunity Member
Getting student name from Moodle
Is there any way to capture the student full name from Moodle and to pass it into Storyline360? I would like to show it in a SL slide and then use the same variable in a PDF document that I would li...
JoeFrancis
4 years agoCommunity Member
Let's start with retrieving the user's name from Moodle and displaying it. The Javascript you would use is:
var player = GetPlayer();
function findLMSAPI(win) { if (win.hasOwnProperty("GetStudentID")) return win; else if (win.parent == win) return null; else return findLMSAPI(win.parent);}var lmsAPI = findLMSAPI(this);
var lmsStudent_Name = lmsAPI.GetStudentName(); player.SetVar("lmsStudent_Name", lmsStudent_Name);
Create a new variable in Storyline called lmsStudent_Name and insert it as a Reference into a Text Box.
Related Content
- 10 months ago
- 11 months ago
- 11 months ago