Thank you for your input on this question, I am using your code to pre-fill a limewurvey questionnaire using the last version of lime survey, and it works perfectly!!
However, I have an issue pre-filling a single choice question, but uisng a dropdown list instead of a radio list. The code provided on this forum is not working as soon as we select a dropdown format. As I have some long list (e.g countries code) to fill in, it would be very convenient to use a dropdown.
Did you by any chance already encounter the same issue? Or would you have a solution to pre-fill a dropdown? I haven't found any by far.
1. Did the solution work for drop downs at previous Limesurvey versions?
2. Please post a link to a short sample survey.
Best regards/Beste Grüße,
Dr. Marcel Minke
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!
1. We never tried it for drop downs at previous versions, we did it here for the first time.
2. For instance, we want to create a drop down list of 4 choices for the respondents, asking them to select the role of their institution (NSO/ Academi/ Private sector, IO). See excel sheet. The code works perfectly for pre-filling a radio list, but does not prefill for dropdown. I am using the code below:
Hi
I require an urgent help in case of an anonymous survey i want a token field value to be stored in a question which will be of equation type. But i am not able to do it using the above mentioned solution.
Please help.
Thanks in advance.
This thread has nothing to do with equation type questions. To prefill that question type, you would simply place something like this in the question text - {TOKEN:ATTRIBUTE_1}.
Having said that, if your survey is anonymous, there is no connection to the token table so you cannot access token attributes from within the survey.