Create Conditional Questions

Discussions about CSEntry
Post Reply
Nikola
Posts: 27
Joined: December 24th, 2021, 4:30 am

Create Conditional Questions

Post 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
Attachments
Conditional Questions.png
Conditional Questions.png (2.33 KiB) Viewed 1514 times
aaronw
Posts: 565
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Create Conditional Questions

Post 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.
Attachments
conditional-text.zip
(2.83 KiB) Downloaded 130 times
Nikola
Posts: 27
Joined: December 24th, 2021, 4:30 am

Re: Create Conditional Questions

Post 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.
Attachments
1.png
1.png (53.97 KiB) Viewed 1496 times
2.png
2.png (55.76 KiB) Viewed 1496 times
3.png
3.png (57.68 KiB) Viewed 1496 times
Last edited by Nikola on June 3rd, 2022, 11:17 pm, edited 1 time in total.
savy
Posts: 162
Joined: December 27th, 2012, 1:36 pm

Re: Create Conditional Questions

Post 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/
Nikola
Posts: 27
Joined: December 24th, 2021, 4:30 am

Re: Create Conditional Questions

Post by Nikola »

It is working in 7.7.1. Thank you!
Post Reply