Checkboxes


Author
Message
temps
temps
Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)
Group: Forum Members
Posts: 3, Visits: 28
Hi there,

I have 50 checkboxes that participants need to choose some from. However, the checkboxes run off the end of the page because there is 50. Is there any way to get a layout like:
1    2   3  4   5   6   7   8  9  10
11 12 13 14 15 16 17 18 19 20
21, etc...

My current code is:


<checkboxes participants51>
/ caption = "Please select the people you think are in the first group"
/ options = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50")
/ optionvalues = ("1","2","3","4","5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50")
/ range = (0, 50)
</checkboxes>


Cheers!

Tags
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
The only way I can think of to get that kind of layout would be to split things into several <checkboxes> elements:

<surveypage mypage>
/ questions = [1=participants51_a, participants51_b, participants51_c]
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<checkboxes participants51_a>
/ caption = "Please select the people you think are in the first group"
/ options = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10")
/ optionvalues = ("1","2","3","4","5", "6", "7", "8", "9", "10")
/ range = (0, 10)
/ orientation = horizontal
</checkboxes>

<checkboxes participants51_b>
/ options = ("11", "12", "13", "14", "15", "16", "17", "18", "19", "20")
/ optionvalues = ("11","12","13","14","15", "16", "17", "18", "19", "20")
/ range = (0, 10)
/ orientation = horizontal
</checkboxes>

<checkboxes participants51_c>
/ options = ("21", "22", "23", "24", "25", "26", "27", "28", "29", "30")
/ optionvalues = ("21","22","23","24","25", "26", "27", "28", "29", "30")
/ range = (0, 10)
/ orientation = horizontal
</checkboxes>

temps
temps
Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)
Group: Forum Members
Posts: 3, Visits: 28
Thank you for this, it's a helpful idea. The problem is that I need all the boxes to be on the same page, and I think this would put them on seperate pages?

Thanks again

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
No, it would  not put them on separate pages. If you run the code in my previous post, you'll see the checkboxes are all displayed on the same, single page as per that page's /questions attribute.

temps
temps
Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)Partner Member (716 reputation)
Group: Forum Members
Posts: 3, Visits: 28
Thank you, it's working great!

One last question: is there a way to make it so that the people don't have to click any checkboxes? At the moment they need to click a box on each line when I've set the code as the following, but I want it so that they don't *have* to click boxes from all lines.

<checkboxes participant21h>
/ options = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10")
/ optionvalues = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10")
/ range = (0, 0)
/orientation = horizontal
</checkboxes>

<checkboxes participant21g>
/ options = ("11", "12", "13", "14", "15", "16", "17", "18", "19", "20")
/ optionvalues = ("11", "12", "13", "14", "15", "16", "17", "18", "19", "20")
/ range = (0, 10)
/orientation = horizontal
</checkboxes>

Thanks again!

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
You should be able to simply set the various <checkboxes> elements' /required attributes to false:

<checkboxes participant21g>
/ options = ("11", "12", "13", "14", "15", "16", "17", "18", "19", "20")
/ optionvalues = ("11", "12", "13", "14", "15", "16", "17", "18", "19", "20")
/ required = false
...
</checkboxes>
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search