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

#441354 Score: 1
Profile photo of Tim K
Tim K
friend finder
junior moderator
wise owl
curious george
Group Member
355 pts

What you actually need:

  1. A variable in Lectora
    The variable needs a name, e.g. “slider1”
  2. Awareness that Lectora renames variables during publication
    A variable called “slider1” will be called “Varslider1” after publication, a variable named “var_slider1” in Lectora will be called “Varvar_slider1”
  3. Slight modification of your current script
    You have a function that inserts the slider value into that “demo1” span. The code to put the value into that Lectora variable would be “Varslider1.set(this.value);” (depending on the name of course)
  4. You need to use that variable in a Lectora action otherwise it won’t exist
This post has received 1 vote up.