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: 665 eLearning ROCKSTAR Admin Team
Answers
Categories
- 35.8K All Categories
- 108 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products