Google Drive - Prompt for Student Name - Variable

mcofield_08
Community Member Posts: 16
Hi,
When outside an LMS and submitting to a Google Drive Doc, the prompt “Prompt for Student Name” captures the students name to a variable (debugging says variable name is TrivantisUserName). Does anyone know a way to retrieve this value to use elsewhere, say on a certificate page, as it doesn’t seem to be an accessible variable from any method I’ve tried.
Thanks,
Mark
When outside an LMS and submitting to a Google Drive Doc, the prompt “Prompt for Student Name” captures the students name to a variable (debugging says variable name is TrivantisUserName). Does anyone know a way to retrieve this value to use elsewhere, say on a certificate page, as it doesn’t seem to be an accessible variable from any method I’ve tried.
Thanks,
Mark
Comments
-
wheels Florida USACommunity Member, Administrator, Moderator, Rockstar Manager Posts: 665 eLearning ROCKSTAR Admin TeamThis is a tricky one because we do not expose it well...
You would need to do the following in JavaScript to get the value back into a user defined variable:Var<strong>MyUserVar</strong>.set(readVariable('TrivantisUserName', '', null, '<strong><replace with title name></strong>'));
Notice the Var prefix on your variable, this is shown also in the variable manager as the JavaScript name.
For the "replace with title name" you can look at one of the published html files to see what is being written out for your course. You should see something like this:
var VarTriMuteAllFLV = new Variable( 'VarTriMuteAllFLV', '', 0, 0, null, null, 'mytitlename.html' );
Where mytitlename.html would be what replaces <replace with title name> above.
Sorry this is not easier, I am writing an issue to make this variable available.
- Joe
Categories
- 35.8K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products