Checkbox list

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
ABOUBALLACK
Posts: 14
Joined: September 22nd, 2016, 9:24 am

Checkbox list

Post 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?
Attachments
test
test
Capture.PNG (8.03 KiB) Viewed 3011 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Checkbox list

Post 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".
ABOUBALLACK
Posts: 14
Joined: September 22nd, 2016, 9:24 am

Re: Checkbox list

Post by ABOUBALLACK »

Thank you very much, you save me!
Post Reply