Solved
How do I use a part of the answer of a previous question as an answer in a following question?
So my first question is: Whats your name? Then in a following question I want to ask: In which stock would you invest? An I want to give the 5 choices of stocknames, 4 fixed names and one that starts with the first three letters of the name they entered in the first question, followed by -ment. So my name is MICHAEL, thus there should be one stock named 'MICMENT' in the second question. Please help me out!
Best answer by MohammedAli_Rajapkar
Hi @miga12
You can try adding below JavaScript at the on unload of "your name" question section
Assign the response of "your name question" to "str" also create an embedded data with any name and replace "first3letter" with the embedded data name which you create.
var str = "${q://QID1/ChoiceTextEntryValue}";
var res = str.substr(0, 3);
Qualtrics.SurveyEngine.setEmbeddedData("first3letter",res);
Then use the embedded data to piped-text on the 4th option of your next question
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.


!
!
!
It still doesn't work...