Explore the community Forums Lectora Inspire Tools Questions & Answers Passing HTML extension value to lectora variable Reply To: Passing HTML extension value to lectora variable

#441380 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

Just to add on to Tim’s answer. You can find the JavaScript name of the Variable in the Variable Manager.
As Tim says use Varname.set() to set the variable and Varname.getValue() to get the current value.

Lectora Online identifies the JavaScript variable names in JavaScript and HTML Extension Header Scripting and includes them automatically. Otherwise you should do as Tim suggests and use a variable somewhere so it is included and available for scripting that is being done.