Need help in pre-filling text fields

More
3 years 6 months ago #99802 by aquarian
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?

Please Log in to join the conversation.

More
3 years 6 months ago #99805 by Ben_V
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
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The following user(s) said Thank You: aquarian

Please Log in to join the conversation.

More
3 years 6 months ago #99816 by aquarian
Thank you for the help :) it worked !!!

Please Log in to join the conversation.