- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Need help in pre-filling text fields
- aquarian
- Topic Author
- Offline
- New Member
Less
More
10 years 6 months ago #99802
by aquarian
Need help in pre-filling text fields was created 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?
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 topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1223
- Thank you received: 351
10 years 6 months ago #99805
by Ben_V
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)
Replied by Ben_V on topic Need help in pre-filling text fields
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
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
The topic has been locked.
- aquarian
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
10 years 6 months ago #99816
by aquarian
Replied by aquarian on topic Need help in pre-filling text fields
Thank you for the help it worked !!!
The topic has been locked.