Solved
How to pre-populate a question with a URL variable (& hide it from respondents!)
I am trying to figure out the following scenario;
I have a list of people that will be receiving a survey about their recent experience at one of several shopping properties. For most of them, we will already know which property they will be answering for, and we wish to automatically categorize that. For others we will not know, and will want to ask them.
In order to achieve this, I have set up a question that lists all of the properties and asks respondents to answer the question.
For respondents that we already know the answer, I have created a series of open links that use the Q_PopulateResponse function to populate the relevant answer. I have been able to test this successfully; it works! :)
What I have *not* been able to do is successfully create logic to hide the question from people for whom the question is not relevant, because when I use display logic to hide the question, it also seems to simultaneously cause the Q_PopulateResponse function to be ignored.
Is there any way to hide a question from respondents but still auto populate it? I am not fluent in advanced scripting but I am not oposed to using javascript if it is absolutely necessary.
Best answer by JenCX
Hmm. Maybe? I don't THINK Q saves that variable in an extractable way but I've never tested it, either.
What you might try instead is to have the store question first in its own block and auto-advance through it with a timing question. Then later in the flow, you can use branch logic to say if the question isn't answered, show the block again.
It'll look a little messy because respondents will see it flash up for a split second before the timer moves them to the next page, but it will get all of your answers in one question.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
