As as user, I answered a H5P question. When I refresh the page, the page does not show the previously selected value or previously entered value.
Is there a way to set the previously selected value.
I tried the below solution which I read through from the forum page
const instances = window.H5P.instances;
for (var i = 0; i < instances.length; i++) {
const instance = instances[i];
if (instance.showSolutions) {
instance.showSolutions();
}
}
But it says wrong answer was selected, which is not true. In this case, very dark purple is correct answer

As as user, I answered a H5P question. When I refresh the page, the page does not show the previously selected value or previously entered value.
Is there a way to set the previously selected value.
I tried the below solution which I read through from the forum page
But it says wrong answer was selected, which is not true. In this case, very dark purple is correct answer