CAPI TEXT Condition in Group roster
Posted: October 12th, 2022, 9:20 am
Dear all,
This is another challenge that I have been battling with in the CAPI text Condition.
In the CAPI text on variable(AMOUNTSPENT), I want to prefix the name of the fruit from curocc(1) and curocc(2) to read as follows;
How much did you spend on Maize in the past 7 days? And How much did you spend on Beans in the past 7days? Respectively.
I have done that and it’s working perfectly using the logic below;
How much did you spend on ~~VEGNAME~~ in the past 7days?
However, from curocc(3) and curocc(4) I want the CAPI text to only prefix the fruit name that was specify under the SPECIFY variable if any;
I have made references to the materials available about the “CAPI TEXT condition” but still not achieving the results.
Below is the logic I used; Both at the “CAPI text window” and that of “Condition window”
CAPI TEXT window1
How much did you spend on ~~VEGNAME~~ in the past 7days?
Condition1: curocc(FRUIT_REC000)=1
CAPI TEXT window2
How much did you spend on ~~VEGNAME~~ in the past 7days?
Condition2: curocc(FRUIT_REC000)=2
CAPI TEXT window3
How much did you spend on ~~ SPECIFY~~ in the past 7days?
Condition3: curocc(FRUIT_REC000)=3
CAPI TEXT window4
How much did you spend on ~~ SPECIFY~~ in the past 7days?
Condition4: curocc(FRUIT_REC000)=4
Any help on that as well.
I am most grateful.
This is another challenge that I have been battling with in the CAPI text Condition.
In the CAPI text on variable(AMOUNTSPENT), I want to prefix the name of the fruit from curocc(1) and curocc(2) to read as follows;
How much did you spend on Maize in the past 7 days? And How much did you spend on Beans in the past 7days? Respectively.
I have done that and it’s working perfectly using the logic below;
How much did you spend on ~~VEGNAME~~ in the past 7days?
However, from curocc(3) and curocc(4) I want the CAPI text to only prefix the fruit name that was specify under the SPECIFY variable if any;
I have made references to the materials available about the “CAPI TEXT condition” but still not achieving the results.
Below is the logic I used; Both at the “CAPI text window” and that of “Condition window”
CAPI TEXT window1
How much did you spend on ~~VEGNAME~~ in the past 7days?
Condition1: curocc(FRUIT_REC000)=1
CAPI TEXT window2
How much did you spend on ~~VEGNAME~~ in the past 7days?
Condition2: curocc(FRUIT_REC000)=2
CAPI TEXT window3
How much did you spend on ~~ SPECIFY~~ in the past 7days?
Condition3: curocc(FRUIT_REC000)=3
CAPI TEXT window4
How much did you spend on ~~ SPECIFY~~ in the past 7days?
Condition4: curocc(FRUIT_REC000)=4
Any help on that as well.
I am most grateful.