On this page, there is also another choice a person makes - a simple A or B RadioSelect through {% formfield
group.prize %}. If the <input...> line is removed, the
show_scores value changes when the button is clicked, but
only if the second choice is already selected (if
prize choice is not done yet, the value of
show_scores remains to be 0 for some reason). In our concept, the timeline should be the opposite: first, a person decides whether to see info hidden by the button with
show_scores, then chooses the A or B option for the
prize variable.
Moreover, the next page doesn't come when the Next button is used unless the show_scores button is clicked (the phrase "this field is required" occurs). Also, as soon as the show_scores button is clicked the next page comes, and it is not supposed to. I've tried adding type="button" into the show_scores button so that it would not lead to page submission, and it works, but the show_scores variable stops changing when the button is used, and hence the page does not get submitted at all.
To sum up, the 2 main problems are
1) For some reason, the show_scores is required to change to 1 for the subject to proceed to the next page -- we don't want that (there has to be a freedom of choice)
2) The page gets submitted if the button with show_scores is clicked, and if type="button" is inserted, the value of
show_scores is not recorded.