Featured Categories
-
Lectora®
Lectora® is the most trusted authoring tool in the world. Rock out your creativity! Author courses any way you like. Lectora adheres to best practices for Accessibility and Web Content Accessibility Guidelines (WCAG), offers responsive authoring for eLearning, and publishes to any LMS (Learning Management System).
-
CenarioVR®
Experience virtual reality through CenarioVR®, our training and virtual reality (VR) authoring software that allows you to create immersive learning in minutes! No coding required!
-
Rockstar Learning Platform®
Our Rockstar Learning Platform® has all the features you’ll love. Help your employees be better at their jobs, more valuable to your company, and most effective in servicing your customers.
-
The Training Arcade®
Level up your learner engagement with the Training Arcade®! The Training Arcade is a library of fun, mobile-ready, casual games that can be rapidly customized with your content to create effective gaming!
-
ELB Learning Content
Did you know that our AssetLibrary™ has over 120 million engaging, interactive, and awe-inspiring templates and assets to help you become an eLearning Rockstar®?
Getting items in dropdown box from file

I wonder if anyone knows how to do this.
I would like to retrieve the items in a dropdown box from a file, not from the mysterious innards of Lectora (and not the Lectora XML .awt file). Is there a way of doing this (JS is ok - although I usually try to avoid that).
Thanks and have a nice Sunday.
Andrew
Comments
-
Hi, Andrew. I'm not sure I understand correctly. Are looking to access the option values in a dropdown from a published lectora lesson or prior? What do you mean 'from a file'? Do you mean something like accessing the options from a published .html or .js file?
Are you looking to access the values from another application? -
Hi Andrew - Depending your goals, this post started by Stan might be helpful. I have not gotten around to trying the solutions offered, so I don't know if/what solution works for my goals.
In summary, my goal was to create "conditional" drop lists so that a selection in one drop list defined the items in a subsequent drop list. Math's solution came close, but was restricted to the number of choices set in Lectora.
Populate a drop-down list with JavaScript -
Thank you both for your suggestions.
What I would like to do is to populate a dropdown box with information stored in an external file linked to the title.
I guess I could write the whole thing in JS but would prefer to stick to the Lectora dropdown box if possible (but I suspect it is not possible). I am in the process of creating some Lectora templates which would be compiled only once but would run many different lessons by importing different data from embedded JS files (at this stage - soon will draw on a mysql database). One problem I have is that the number of questions will vary from lesson to lesson and at the moment I have to set an upper limit (e.g. 50 questions) and produce some kind of error message if there are fewer than 50 questions e.g. if there are only 30 questions but the student requests lesson 35 s/he would receive some kind of message saying that this question does not exist (or whatever).
Hope this makes sense.
Categories
- 35.9K All Categories
- 110 ✫ Announcements
- 33.2K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 27 ELB Learning Content
- 27 ELB Learning Content Discussions
- 346 CenarioVR®
- 205 CenarioVR Discussions
- 141 CenarioVR Feature Requests
- 44 Rockstar Learning Platform®
- 41 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 48 ReviewLink®
- 48 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 938 All Things eLearning
- 39 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products