Forum Discussion
Locating randomised Radio and Check Mark buttons
I’m not sure what your current setup is, but it shouldn’t matter whether you’re using a graded question, a freeform interaction, or a fully custom layout. The real challenge is detecting the position of an object when the answers are shuffled.
To handle this properly, you’d need to use JavaScript and reference objects directly, so that elements like a checkmark or tick icon align to the correct option, ideally when it’s selected or represents the correct answer.
In the example below, I used a bit of JavaScript to align a single checkmark with whichever object is currently selected, even when the answer order is randomized. It's done using a simple script, without any triggers, just a single "Execute JavaScript" trigger that runs when the object is selected. Even if the objects are randomly scattered or repositioned on the slide, the code doesn't need to be updated. It will execute the same way.
I used a similar technique in E-Learning Challenge #506.
Again, I’m not sure of your exact scenario. How many objects are involved or what your full requirements are but if the main goal is to detect an object’s position and align another object to it, then yes, this can definitely be done.
Related Content
- 6 months ago
- 2 months ago