CHANGE VARIABLE INTO CHOICE OPTION IN ANOTHER QUESTION

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
subash
Posts: 26
Joined: March 3rd, 2016, 5:49 am
Location: Nepal

CHANGE VARIABLE INTO CHOICE OPTION IN ANOTHER QUESTION

Post by subash »

Is it possible to make the variable as choice in another question??. For eg, question is in dichotomous
#What are you favorite fruits?
1) banana 1 2
2) mango 1 2
3) orange 1 2
4) pineapple 1 2
5) apple 1 2
6) other 1 2

now if the next question is
#Please arrange the fruits by ranking in best preference as per your choice? (In this question only the selected fruits from above must be listed in choice) For eg: banana, orange and apple was selected previous than only those response should be shown in the choices list.

So, that the next question will appear as
fruits rank
-Banana ................
-Orange ................
-Apple ................

So, any one any idea regarding such programming in CSPro, please do share your idea about it.
Zin Nwe Aung
Posts: 1
Joined: June 22nd, 2017, 12:21 am

Re: CHANGE VARIABLE INTO CHOICE OPTION IN ANOTHER QUESTION

Post by Zin Nwe Aung »

Hi friends,

I am facing the similar problem. I have attached the file which is priority order form.
Please give advise & suggestion too me.

Yours,
Zin Nwe
Attachments
RE V2.rar
(11.68 KiB) Downloaded 347 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: CHANGE VARIABLE INTO CHOICE OPTION IN ANOTHER QUESTION

Post by josh »

There is an example here:

http://teleyah.com/cspro/SouthAfricaOct ... rcises.zip

Look at CROP_RANKING
subash
Posts: 26
Joined: March 3rd, 2016, 5:49 am
Location: Nepal

Re: CHANGE VARIABLE INTO CHOICE OPTION IN ANOTHER QUESTION

Post by subash »

Thank you so much josh, but is there any way to pull the open ended response in another question as choices in same way as shown in the example???
It will be more helpful if there is any possible way to convert the open ended response as a choice in another question.
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: CHANGE VARIABLE INTO CHOICE OPTION IN ANOTHER QUESTION

Post by josh »

What do you mean by "open ended question"? Is it a textbox, checkboxes?
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: CHANGE VARIABLE INTO CHOICE OPTION IN ANOTHER QUESTION

Post by Gregory Martin »

Look at the Simple CAPI example, located here:

<your examples folder>\CSPro\Examples 7.0\1 - Data Entry\Simple CAPI

Look at PROC MAIN_LANGUAGE and see how it references the open-ended text field LANGUAGES_SPOKEN_OTHER.
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: CHANGE VARIABLE INTO CHOICE OPTION IN ANOTHER QUESTION

Post by josh »

OK. So you can combine the Simple CAPI example with the ranking example. You just need to modify the code that builds the list of the labels to use the text from the open ended question instead of "other".
subash
Posts: 26
Joined: March 3rd, 2016, 5:49 am
Location: Nepal

Re: CHANGE VARIABLE INTO CHOICE OPTION IN ANOTHER QUESTION

Post by subash »

Thank you, josh and Gregory for the suggestion but I am not getting any example file even though i have selected the example file while downloading it. So, could you provide me the example file of CSPro 7??
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: CHANGE VARIABLE INTO CHOICE OPTION IN ANOTHER QUESTION

Post by josh »

C:\Users\<your username>\Documents\cspro\Examples 7.0

you can also get there from the Help menu in CSPro.
subash
Posts: 26
Joined: March 3rd, 2016, 5:49 am
Location: Nepal

Re: CHANGE VARIABLE INTO CHOICE OPTION IN ANOTHER QUESTION

Post by subash »

I followed that as well but still having the problem to get access over it. I have attached the notification photo.
Attachments
Problem in opening the example file
Problem in opening the example file
Screenshot 2017-06-28 11.45.55.png (118.01 KiB) Viewed 8522 times
Post Reply