Google Drive - Prompt for Student Name - Variable

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.

undefined

Thanks,

Mark

Discussion (1)

This 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:

VarMyUserVar.set(readVariable('TrivantisUserName', '', null, 'undefined

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 undefined

Discussions have been disabled for this post