Using variables in HTML Extension Object
May 6, 2022 12:00 AM
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:
undefined
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:
The HTML Extension Object is currently an 'Other' type.
Any advice would be most appreciated,
Thanks,
Solution
Discussion (2)
@wheels that worked perfectly, thank you :smile: