Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Need help with prefilling questions

Need help with prefilling questions 4 years 3 months ago #80011

  • Raisis
  • Raisis's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Hi everybody,

I like to prefill two answers of my survey. It's a personal survey where I know my audience and I would like to prefill there name (it's a text input field)

So I've got a suvrey with the ID 999, the group ID is 1, questions ID is 1 question code is name.

I thought this link would prefill the question:

http://survey-link/index.php?sid=999&999X1X1name=MyName

But it does not work :(

Can you help me finding the mistake? Thank you :)
Last Edit: 4 years 3 months ago by Raisis.
The administrator has disabled public write access.

Need help with prefilling questions 4 years 3 months ago #80018

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6207
  • Thank you received: 1376
  • Karma: 538
If it is a short-texr question, try:
survey-link/index.php?sid=999&999X1X1=MyName
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Need help with prefilling questions 4 years 3 months ago #80026

  • Raisis
  • Raisis's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
I've tried it. And the field is still empty :(
The administrator has disabled public write access.

Need help with prefilling questions 4 years 3 months ago #80030

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9298
  • Thank you received: 1330
  • Karma: 386
try to add &newtest=Y to the url.

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Need help with prefilling questions 4 years 3 months ago #80085

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5977
  • Thank you received: 368
  • Karma: 260
1. Which Limesurvey version do you use?

2. Did you set the question to be always hidden? If so and you change that setting, does it work fine?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.213 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form