Page 1 of 1

Copy HH members(Serial Number and Names) which is 1 selection(radio button) to a multiple choice roster(chekcbox)

Posted: September 9th, 2020, 5:58 am
by mussabahire
Dear Cspro team,
I have a problem where I want to display all household members to a multiple choice roster.
Kindly help me.

I want to choose which member of the Household who consummed an item.
I am still using Cspro 7.2

Thank you

Re: Copy HH members(Serial Number and Names) which is 1 selection(radio button) to a multiple choice roster(chekcbox)

Posted: September 9th, 2020, 7:54 am
by josh
You can use the valueset object and the setvalueset function to do this. Loop through the roster of household members and each member to the valueset object. Then call setvalueset to set the valueset for the question. You can see examples of page 38 of the workshop materials https://www.csprousers.org/resources/CS ... rkshop.pdf

Re: Copy HH members(Serial Number and Names) which is 1 selection(radio button) to a multiple choice roster(chekcbox)

Posted: September 10th, 2020, 1:17 am
by mussabahire
This manual is for 7.4. I was still using 7.2

Re: Copy HH members(Serial Number and Names) which is 1 selection(radio button) to a multiple choice roster(chekcbox)

Posted: September 10th, 2020, 7:59 am
by josh
The relevant section also applies to CSPro 7.2