[open] Forms: many checkboxes on one screen do not check
Hi,
as always: I have a problem.
I created a form with many checkboxes, which looks like this:
set margins "100;200;100;200"
set rows "1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1"
set spacing "25"
set cols "1;1;1;1"
widget 1 18 2 3 button text="next"
widget 0 1 4 1 label center="no" text="Question?"
widget 1 3 2 1 checkbox var="awareness_response" text="A"
widget 1 4 2 1 checkbox var="awareness_response" text="B"
widget 1 5 2 1 checkbox var="awareness_response" text="C"
widget 1 6 2 1 checkbox var="awareness_response" text="D"
widget 1 7 2 1 checkbox var="awareness_response" text="E"
widget 1 8 2 1 checkbox var="awareness_response" text="F"
widget 1 9 2 1 checkbox var="awareness_response" text="G"
widget 1 10 2 1 checkbox var="awareness_response" text="H"
widget 1 11 2 1 checkbox var="awareness_response" text="I"
widget 1 12 2 1 checkbox var="awareness_response" text="J"
widget 1 13 2 1 checkbox var="awareness_response" text="K"
I cannot click the boxes, no checkes appear, when I click next, the variable "awareness_response" is "no".
It is just a version of a nother form with just two checkboxes, which works perfectly well.
Any ideas?
Comments
The problem is that you're leaving your widgets very little room to breathe!
Let's say that you're display height is 1024, then the effective height (minus margins) is
1024 - 100 - 100 = 824pxwhich leaves
824/19 = 43pxfor each cell, as you have 19 rows. Each cell has a spacing of 25 pixels on each side, which leaves a widget height of
43 - 2*25 = -7pxSetting the spacing to 0 should fix your issue!
Incidentally, writing this I notice that the widget spacing is described incorrectly here, which may have caused your confusion.
Cheers!
Check out SigmundAI.eu for our OpenSesame AI assistant!