an array of arrays of valid answers for this checkbox grid item
Creates a new ItemResponse for this checkbox grid item. The argument responses must be a String[][] array of arrays containing as many values as the number of inputs in the checkbox grid. A null element for a non-required checkbox grid question indicates no response to that row. Throws an exception if any of the values does not match a valid choice.
--------------------------------------------------
If I have a simple Checkbox Grid question that is one row called "Row1" and two options or Columns called C1 and C2, how do I correctly structure the array so that the Form will accept it?
For example, if I want to enter the response of C1 and C2 (both items checked) in the Form, would the array be
[['C1']['C2']]
['Row1']['C1','C2']]
[[true],[true]]
['C1','C2']
[true,true]
something else?
The developers pages do not provide an example and everything I have tried is not working.
Adam
For GridItem questions, this returns a String[] array in which the answer at index n corresponds to the question at row n + 1 in the grid. If a respondent did not answer a question in the grid, that answer is returned as ''.
For CheckboxGridItem questions, this returns a String[][] array in which the answers at row index n corresponds to the question at row n + 1 in the checkbox grid. If a respondent did not answer a question in the grid, that answer is returned as ''.