Millisecond Forums

How to require participants to check FIVE CONSECUTIVE boxes?

https://forums.millisecond.com/Topic21397.aspx

By yihuanlai - 4/21/2017

Hi guys,

The following is my code. It asks participants to check 5 consecutive boxes. However, some participants might check boxes that are not consecutive or might check less than 5 boxes. So I wonder whether I there is a code that could force the participants to check 5 consecutive boxes? Thank you so much!

<checkboxes q17>
/ caption= "17. Suppose that you can choose your own academic/work hours. Assume that you worked a FIVE-hour day (including breaks) and that your job was interesting and paid by results. Which FIVE CONSECUTIVE HOURS would you select? "
/ required = true
/ options=("12am-1am", "1am-2am","2am-3am","3am-4am","4am-5am","5am-6am","6am-7am","7am-8am","8am-9am","9am-10am","10am-11am","11am-12pm","12pm-1pm","1pm-2pm","2pm-3pm","3pm-4pm","4pm-5pm","5pm-6pm","6pm-7pm","7pm-8pm","8pm-9pm","9pm-10pm","10pm-11pm","11pm-12am")
/orientation = vertical
/required = true
</checkboxes>

-Yihuan




By Dave - 4/21/2017

yihuanlai - Friday, April 21, 2017
Hi guys,

The following is my code. It asks participants to check 5 consecutive boxes. However, some participants might check boxes that are not consecutive or might check less than 5 boxes. So I wonder whether I there is a code that could force the participants to check 5 consecutive boxes? Thank you so much!

<checkboxes q17>
/ caption= "17. Suppose that you can choose your own academic/work hours. Assume that you worked a FIVE-hour day (including breaks) and that your job was interesting and paid by results. Which FIVE CONSECUTIVE HOURS would you select? "
/ required = true
/ options=("12am-1am", "1am-2am","2am-3am","3am-4am","4am-5am","5am-6am","6am-7am","7am-8am","8am-9am","9am-10am","10am-11am","11am-12pm","12pm-1pm","1pm-2pm","2pm-3pm","3pm-4pm","4pm-5pm","5pm-6pm","6pm-7pm","7pm-8pm","8pm-9pm","9pm-10pm","10pm-11pm","11pm-12am")
/orientation = vertical
/required = true
</checkboxes>

-Yihuan





You can enforce that 5 boxes have to be checked via the /range attribute:

<checkboxes q17>
/ caption= "17. Suppose that you can choose your own academic/work hours. Assume that you worked a FIVE-hour day (including breaks) and that your job was interesting and paid by results. Which FIVE CONSECUTIVE HOURS would you select? "
/ required = true
/ options=("12am-1am", "1am-2am","2am-3am","3am-4am","4am-5am","5am-6am","6am-7am","7am-8am","8am-9am","9am-10am","10am-11am","11am-12pm","12pm-1pm","1pm-2pm","2pm-3pm","3pm-4pm","4pm-5pm","5pm-6pm","6pm-7pm","7pm-8pm","8pm-9pm","9pm-10pm","10pm-11pm","11pm-12am")
/orientation = vertical
/required = true
/ range = (5,5)
</checkboxes>

However, I can't think of any way to enforce 5 *consecutive* boxes.
By Dave - 4/21/2017

Dave - Friday, April 21, 2017
yihuanlai - Friday, April 21, 2017
Hi guys,

The following is my code. It asks participants to check 5 consecutive boxes. However, some participants might check boxes that are not consecutive or might check less than 5 boxes. So I wonder whether I there is a code that could force the participants to check 5 consecutive boxes? Thank you so much!

<checkboxes q17>
/ caption= "17. Suppose that you can choose your own academic/work hours. Assume that you worked a FIVE-hour day (including breaks) and that your job was interesting and paid by results. Which FIVE CONSECUTIVE HOURS would you select? "
/ required = true
/ options=("12am-1am", "1am-2am","2am-3am","3am-4am","4am-5am","5am-6am","6am-7am","7am-8am","8am-9am","9am-10am","10am-11am","11am-12pm","12pm-1pm","1pm-2pm","2pm-3pm","3pm-4pm","4pm-5pm","5pm-6pm","6pm-7pm","7pm-8pm","8pm-9pm","9pm-10pm","10pm-11pm","11pm-12am")
/orientation = vertical
/required = true
</checkboxes>

-Yihuan





You can enforce that 5 boxes have to be checked via the /range attribute:

<checkboxes q17>
/ caption= "17. Suppose that you can choose your own academic/work hours. Assume that you worked a FIVE-hour day (including breaks) and that your job was interesting and paid by results. Which FIVE CONSECUTIVE HOURS would you select? "
/ required = true
/ options=("12am-1am", "1am-2am","2am-3am","3am-4am","4am-5am","5am-6am","6am-7am","7am-8am","8am-9am","9am-10am","10am-11am","11am-12pm","12pm-1pm","1pm-2pm","2pm-3pm","3pm-4pm","4pm-5pm","5pm-6pm","6pm-7pm","7pm-8pm","8pm-9pm","9pm-10pm","10pm-11pm","11pm-12am")
/orientation = vertical
/required = true
/ range = (5,5)
</checkboxes>

However, I can't think of any way to enforce 5 *consecutive* boxes.

I'm wondering, though, whether slightly rephrasing the options would solve the problem:

<checkboxes q17>
/ caption= "17. Suppose that you can choose your own academic/work hours. Assume that you worked a FIVE-hour day (including breaks) and that your job was interesting and paid by results. Which FIVE CONSECUTIVE HOURS would you select? "
/ required = true
/ options=("12am-5am", "1am-6am","2am-7am","3am-8am","4am-9am","5am-10am","6am-11am","7am-12pm","8am-1pm","9am-2pm","10am-3pm","11am-4pm","12pm-5pm","1pm-6pm","2pm-7pm","3pm-8pm","4pm-9pm","5pm-10pm","6pm-11pm","7pm-12am","8pm-1am","9pm-2am","10pm-3am","11pm-4am")
/orientation = vertical
/required = true
/ range = (1,1)
</checkboxes>

I.e., give 5-hour ranges as options, enforce the selection of one option.