Using variables in HTML Extension Object

ewalsh-3688
Community Member Posts: 23 ☆ Roadie ☆
Hi,
Can anyone help me with the correct way to use a Lectora variable in the Ace Code editor for a HTML Extension Object? I've used the dropdown at the top of the screen, and depending on the variable, it will either insert the variable name, or prefix 'var'. However, it doesn't appear to be detected correctly when run though.
I'm trying to insert an img tag with a URL that contains the learner's username, something like this:
I was anticipating it changing to:
Any advice would be most appreciated,
Thanks,
Can anyone help me with the correct way to use a Lectora variable in the Ace Code editor for a HTML Extension Object? I've used the dropdown at the top of the screen, and depending on the variable, it will either insert the variable name, or prefix 'var'. However, it doesn't appear to be detected correctly when run though.
I'm trying to insert an img tag with a URL that contains the learner's username, something like this:
<img src="https://example.com/image?q=AICC_Student_ID"></img>In this example, the AICC_Student_ID isn't being changed to the learner's LMS username when run from an LMS as a SCORM 1.2 package.
I was anticipating it changing to:
<img src="https://example.com/image?q=johnsmith1"></img>The HTML Extension Object is currently an 'Other' type.
Any advice would be most appreciated,
Thanks,
Tagged:
Best Answer
-
wheels Florida USACommunity Member, Administrator, Moderator, Rockstar Manager Posts: 631 eLearning ROCKSTAR Admin Team
Answers
Categories
- 4.7K All Categories
- 3 New Feature Releases
- The Training Arcade®
- Arcades™
- 57 ✫ Announcements
- 6 ✪ Contests
- 34.1K eLearning Brothers® Products
- 33.6K Lectora®
- 31.6K Lectora Discussions
- 1.9K Lectora Feature Requests
- 64 Lectora User Groups
- 16 Asset Library
- 10 AssetLibrary Discussions
- 6 AssetLibrary Feature Requests
- 290 CenarioVR®
- 169 CenarioVR Discussions
- 121 CenarioVR Feature Requests
- 29 Rockstar Learning Platform®
- 20 Rockstar Learning Platform Discussions
- 9 Rockstar Learning Platform Feature Requests
- 4 Off-the-Shelf Course Library
- 3 Off-the-Shelf Course Library Discussions
- 1 Off-the-Shelf Course Library Feature Requests
- 114 CourseMill®
- 107 CourseMill Discussions
- 43 ReviewLink®
- 31 ReviewLink Discussions
- 12 ReviewLink Suggestions
- 2 The Training Arcade®
- 1 The Training Arcade Discussions
- 1 The Training Arcade Feature Requests
- 10 Additional Learning Products
- 2 Adobe®
- 4 Articulate®
- 2 Camtasia®
- Docebo®
- 1 iSpring®
- 1 Microsoft® PowerPoint®
- 912 All Things eLearning
- 5 Course Development Showcase
- 1 eLearning Brothers® Downloads
- 1 Compliance Training
- 11 eLearning Development
- eLearning Game Design
- 7 Instructional Design
- 546 Learning Management System (LMS) Integration
- 2 Mobile Learning
- 5 Visual Design
- 328 Web Accessibility
- 1.2K ♪ The Green Room
- 7 ♡ Community Feedback
- 7 Community Tips