Forum Discussion
Can I change the Object ID in and xAPI statement?
I am using a toggle button on a master slide in my course to switch from Spanish to English. I want to track the users who utilize the Spanish version. I have set up an xAPI statement but want to change the Object ID so that I only see if the button was clicked and not which slide it was used AND to change the name of the Object ID. Is this even possible? Here is what I am wanting to use
{
"verb": {
"id": "http://adlnet.gov/expapi/verbs/interacted",
"display": {
"en-US": "Interacted"
}
},
"object": {
"objectType": "Activity",
"definition": {},
"id": "%Project.ActivityId%/Spanish_button_used"
}
}
2 Replies
Hello SusanEhringer,
Happy to help!
I'm unsure what you're trying to build, but you can theoretically modify all the variables by creating custom xAPI statements. The values of these statements are what gets sent to the LMS for reporting purposes. You can read more about building custom xAPI statements here:
I'll let community members chime in in case someone has a solution that's more specific to your requirement!
- NedimCommunity Member
Try executing the xAPI statement below when the user clicks a button:
Instead of just typing the words, retrieve the actual button object's name.
Result: