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

TOPIC: Need help in pre-filling text fields

Need help in pre-filling text fields 2 years 10 months ago #99802

  • aquarian
  • aquarian's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Hello all,

I have created a survey with 3 text fields.
1) Lead ID
2) First Name
3) Last Name

I am pre-filling the fields using their SGQA code
http://localhost/limesurvey/index.php/174321/lang-en?174321X1X10=12345&174321X1X11=John&174321X1X12=Smith

so in the example above all the text fields are correctly pre-filled with values from query string i.e.
Lead ID=12345, First Name=John and Last Name=Smith

Now if I change the values of SGQA codes e.g.
Lead ID=54543, First Name=Mark and Last Name=Williams in query string

http://localhost/limesurvey/index.php/174321/lang-en?174321X1X10=54543&174321X1X11=Mark&174321X1X12=Williams

and refresh the page, LimeSurvey does not load the new values??? instead it shows the previously loaded value until i submit that survey and refresh the new values...

How can I destroy an existing lime survey session and get new values in text fields?
The administrator has disabled public write access.

Need help in pre-filling text fields 2 years 10 months ago #99805

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1790
  • Thank you received: 439
  • Karma: 110
Hello,

maybe it will be enough just adding newtest=Y parameter to your url...

http://localhost/limesurvey/index.php/174321/lang-en?newtest=Y&174321X1X10=12345&174321X1X11=John&174321X1X12=Smith
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.
The following user(s) said Thank You: aquarian

Need help in pre-filling text fields 2 years 10 months ago #99816

  • aquarian
  • aquarian's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Thank you for the help :) it worked !!!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.515 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form