Hi everyone,
I created a form field that is using javascript from the community link below. It is working great when I tested it on the original question. I am re-using this question multiple times in the survey and so I just duplicated the question. When I checked the response data I noticed that the additional questions are displaying what was recorded in the 1st question. I assume there is something I need to change for each question so that the response data, piped text, and future embedded data knows what was in the field of each question and doesn't reference the 1st response choices. I'm still a pretty new person to javascript, so any guidance would be appreciated. Thanks.
https://community.qualtrics.com/XMcommunity/discussion/6235/how-can-i-put-a-drop-down-list-in-a-form-question-field
Got it figured out....Looks like I needed to change the variable names s1, s2, s3, etc. and just continue the numbering of each one on each question.
gsheppard can you explain what you did to fix the issue you were having? I'm running into the same issue i think -- I have two different form fields that each have a separate dropdown list in the first text box (so I'm calling them both s0), but it uses the answer from the first dropdown for both questions in my response data.
jflowers1 Yes that is correct. For each question you need to rename the variable name to something different and then change that variable in all section of the javascript. In my case I had 5 questions I was using and so I had to change the names multiple times:
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.