@Tim. In the course of re-factoring my REGEXP question type for the new 2.1 question engine I have the following problem...
For each REGEXP question, a "Hint button" feature enables the student to "buy" a letter. Once that Hint button has been pressed and a letter added to the question input field, the Hint button is disabled until the student presses the Check button. That is to prevent successive clicks on the Hint button without incurring penalties...
In the Question preview mode and in quiz mode with ONE question per page, this works fine. However, I have a problem when there are more than one question per page (either of the REGEXP type or any other type).
When the Hint button has been pressed and disabled, the only Check button that I want to re-activate that Hint button is of course the one pertaining to the (REGEXP) question with the disabled Hint button. I cannot achieve this, because in my question renderer.php I see no way to find out which of the Check buttons on the page has been pressed. The question_attempt parameter passed to the formulation_and_controls that I over-ride in my renderer does not contain that info.
What should I do?
Joseph