Page 1 of 1

CAPI TEXT FOR MULTIPLE RESPONSES

Posted: November 29th, 2017, 8:23 am
by Yass
Dear Forum

I have this issue, i will like to list responses selected in a multiple response question to my CAPI text,
I tried the following and it not wrong. Please help.

Proc f15
preproc
drinksSelected="";
if pos ("A",f14) then drinksSelected = drinksSelected + " Fanta"; endif;
if pos ("B",f14) then drinksSelected = drinksSelected + " /Coca Cola"; endif;
if pos ("C",f14) then drinksSelected = drinksSelected + " /Spirite"; endif;
if pos ("F",f14) then drinksSelected = drinksSelected + " / Pepsi"; endif;

IN MY CAPI TEXT I HAVE :

How much did it cost you in buying : %drinksSelected% ?

It does not work... am I in the right path?

Re: CAPI TEXT FOR MULTIPLE RESPONSES

Posted: November 29th, 2017, 11:43 am
by khurshid.arshad
Dear Yass;

It is working fine. See attached file
Best.
a.

Re: CAPI TEXT FOR MULTIPLE RESPONSES

Posted: November 29th, 2017, 12:11 pm
by Yass
Dear khurshid,

Thanks , my declaration was in private , after sending it to global , it works!!! Thanks