- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Correct use of "newtest" in URL fields
- Ja_Del
- Topic Author
- Offline
- New Member
Less
More
4 months 1 week ago #253525
by Ja_Del
Correct use of "newtest" in URL fields was created by Ja_Del
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 6.3.1+231023
Own server or LimeSurvey hosting: Own
Survey theme/template: [fruity_twentythree]
==================
I want to send the same survey to gather data from multiple locations. I found out that I can use hidden questions in my survey and pre-fill them with parameters in the link URL:
Example with two locations (called A and
I also noticed, that I have to use newtest=Y for testing:
From what I could test so far is working. What I am wondering is the following: Do I have to keep the "newtest" when I send out the URLs to the particpants? E.g.
1. A person receives
2. The field Location gets prefilled with "B".
3. The person doenst end the survey and closes the survey.
4. The person opens up the survey again and a later point in time. Will Location still be filled with "B"?
Best regards
Jan
Your LimeSurvey version: Version 6.3.1+231023
Own server or LimeSurvey hosting: Own
Survey theme/template: [fruity_twentythree]
==================
I want to send the same survey to gather data from multiple locations. I found out that I can use hidden questions in my survey and pre-fill them with parameters in the link URL:
Example with two locations (called A and
Code:
http://ls.example.org/1234?Location=A
Code:
http://ls.example.org/1234?Location=B
I also noticed, that I have to use newtest=Y for testing:
Code:
http://ls.example.org/1234?Location=B&newtest=Y
From what I could test so far is working. What I am wondering is the following: Do I have to keep the "newtest" when I send out the URLs to the particpants? E.g.
1. A person receives
Code:
http://ls.example.org/1234?Location=B
3. The person doenst end the survey and closes the survey.
4. The person opens up the survey again and a later point in time. Will Location still be filled with "B"?
Best regards
Jan
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
4 months 1 week ago #253526
by DenisChenu
If you don't close browser : you need newtest (or any other way to reset session). For example : for kiosk mode : you NEED newtest.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Correct use of "newtest" in URL fields
newtest reset session, if you close browser : you reset session.From what I could test so far is working. What I am wondering is the following: Do I have to keep the "newtest" when I send out the URLs to the particpants? E.g.
If you don't close browser : you need newtest (or any other way to reset session). For example : for kiosk mode : you NEED newtest.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: Ja_Del
Please Log in to join the conversation.
- Ja_Del
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
4 months 1 week ago #253527
by Ja_Del
Replied by Ja_Del on topic Correct use of "newtest" in URL fields
What happens if the session does not get reset? Does the field stay prefilled or is it emptied? (e.g a person closes the tab, but not the browser)?
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
4 months 1 week ago #253530
by DenisChenu
Submitting reset session too (except if you allow print if i don't make error)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Correct use of "newtest" in URL fields
prefilled : the survey didn't restart, then it's the same answer, step etc …What happens if the session does not get reset? Does the field stay prefilled or is it emptied? (e.g a person closes the tab, but not the browser)?
Submitting reset session too (except if you allow print if i don't make error)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
4 months 1 week ago #253566
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Correct use of "newtest" in URL fields
If you send individual links to each participant, you might actually want to consider a closed survey with tokens. You can save custom attributes in the participant table and use these attributes within the survey (if not set to anonymous). Depending on what you exactly do and need, I would find that the cleaner and neater solution.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: Ja_Del
Please Log in to join the conversation.
- Ja_Del
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
4 months 1 week ago #253621
by Ja_Del
I will just use prefilled "location=" and get rid of the "newTest=Y" one I am done testing.
Thanks for all the help!
Replied by Ja_Del on topic Correct use of "newtest" in URL fields
I need to work with individual links for individual locations, not for specific participants. But thanks for the advice, if I ever need that, I am going with that solution. I also think it is cleaner.If you send individual links to each participant, you might actually want to consider a closed survey with tokens. You can save custom attributes in the participant table and use these attributes within the survey (if not set to anonymous). Depending on what you exactly do and need, I would find that the cleaner and neater solution.
I will just use prefilled "location=" and get rid of the "newTest=Y" one I am done testing.
Thanks for all the help!
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
4 months 1 week ago #253647
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Correct use of "newtest" in URL fields
In theory you could still use tokens with a higher "uses left" count, but if the same code is for a number of people there is not much advantage of tokens over a variable in the URL.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
4 months 1 week ago #253664
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Correct use of "newtest" in URL fields
Or disable answer persistance (best for different people) and allow any number of response.In theory you could still use tokens with a higher "uses left" count, but if the same code is for a number of people there is not much advantage of tokens over a variable in the URL.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Please Log in to join the conversation.