Page 1 of 1

Create Conditional Questions

Posted: June 2nd, 2022, 12:54 pm
by Nikola
Hello CSPro users,

I want to create conditional questions in the roster.

Referring to the CSPro Help(link below), I added a condition to display different question text for a variable in the first row of the roster. I added "curocc() = 1" and I wrote questions differently.

In addition, I added "count (HOUSEHOLD_ROSTER000 where RELATIONSHIP =1 ) > 1" to change the question after respondents answer RELATIONSHIP =1 in the roster.

Both conditions are not working. Am I missing something?

Create Conditional Questions: https://www.csprousers.org/help/CSPro/c ... tions.html

Re: Create Conditional Questions

Posted: June 2nd, 2022, 6:49 pm
by aaronw
I've added a simple application using curocc() as an example. Run the application and pay attention to the CAPI text for the NAME field. It will display the current row number. Then drop into the designer and inspect the CAPI text for NAME. Select each condition and notice the CAPI text changes.

Re: Create Conditional Questions

Posted: June 3rd, 2022, 2:24 am
by Nikola
Thank you. I ran the application you attached, but it wasn't working well. The question texts were always "Row 1".

I am using CSPro 7.7 version. Please see the attached screenshots.

I was wondering if conditional questions work well on your device.

Best regards.

Re: Create Conditional Questions

Posted: June 3rd, 2022, 8:46 am
by savy
There was a bug in CSPro 7.7.0 that was fixed in 7.7.1. You can download it from here: https://www.csprousers.org/downloads/

Re: Create Conditional Questions

Posted: June 3rd, 2022, 10:55 pm
by Nikola
It is working in 7.7.1. Thank you!