LectoraXAPIStmt(“Btn001”, “Name that we want saved”); to this: LectoraXAPIStmt(“%HTMLNAME.altName%”);
This “sort of” works in that our LRS will report the following interaction:
It’s not pulling in the alt text for the image, it’s pulling in the HTML name that Lectora generates for each item. But I feel like I’m getting closer. I’ve tried a variety of variations on that coding like,
A way to do it should be to set the variable in the way I’ve described in that other topic. Mind the action must be attached to the button. Then use the variable myAltTag for all other puposes. I’m not familiar with xAPI but it should work with
to use the variable value in the command.
If you’re using Lectoras “xAPI Statement” action, you can select the variable in the “Object” field from the dropdown or enter VAR(myAltTag)