Checkbox list

Discussions about creating CAPI applications to run on Android devices
ABOUBALLACK
Posts: 13
Joined: September 22nd, 2016, 9:24 am

Checkbox list

Postby ABOUBALLACK » December 6th, 2018, 6:47 am

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
Capture.PNG
test
Capture.PNG (8.03 KiB) Viewed 49 times

josh
Posts: 1689
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Checkbox list

Postby josh » December 6th, 2018, 7:47 am

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: 13
Joined: September 22nd, 2016, 9:24 am

Re: Checkbox list

Postby ABOUBALLACK » December 6th, 2018, 8:18 am

Thank you very much, you save me!


Return to “Android”