Explore the community Forums Lectora Lectora Questions & Answers Google Drive – Prompt for Student Name – Variable Reply To: Google Drive – Prompt for Student Name – Variable

#398182 Score: 0
Profile photo of Joe Wieloch
Joe Wieloch
Moderator
beginner
intermediate
friend finder
contributor
LUC16 Attendee
verified member
wise owl
LUC17 Attendee
advanced
picture perfect
73 pts
@wheels

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, '<replace with title name>'));

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

 

 

  • This reply was modified 2 years, 3 months ago by Profile photo of Joe Wieloch Joe Wieloch.