Page 1 of 1

Checkbox list

Posted: December 6th, 2018, 6:47 am
by ABOUBALLACK
Hello, I want to create a checkbox list with 20 boxes. However at the form level this remark is displayed (see image) and I would like to work around it.
How to do? Or is there a fixed number of choices not to exceed for checkboxes?

Re: Checkbox list

Posted: December 6th, 2018, 7:47 am
by josh
From the CSPro help page on checkboxes:
The length of the field must be a multiple of the maximum length of a response. For example, if each response code is one character and you have five responses, then a field of length five would allow for the selection of all responses. A field of length two would allow for only two responses (e.g., "pick the top two...").
This means that if the response length is one digit then you need to make sure that your variable is defined in the dictionary as type alpha length 20. If you are using two digit responses then your variable in the dictionary must be alpha length 40 (20 responses times length 2). Also since the responses are alphanumeric you need to make sure that all the values defined in the value set for you variable are the same length. For example if you have two digit responses then values should be "01", "02", "03"... rather than "1","2","3".

Re: Checkbox list

Posted: December 6th, 2018, 8:18 am
by ABOUBALLACK
Thank you very much, you save me!