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
  • Ja_Del's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 months 1 week ago #253525 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 B)
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
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


 

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 months 1 week ago #253526 by DenisChenu
Replied by DenisChenu on topic Correct use of "newtest" in URL fields

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.
 
newtest reset session, if you close browser : you reset session.

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
  • Ja_Del's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 months 1 week ago #253530 by DenisChenu
Replied by DenisChenu 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)?

 
prefilled : the survey didn't restart, then it's the same answer, step etc …

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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 months 1 week ago #253566 by holch
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
  • Ja_Del's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 months 1 week ago #253621 by Ja_Del
Replied by Ja_Del 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 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. 

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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 months 1 week ago #253647 by holch
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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 months 1 week ago #253664 by DenisChenu
Replied by DenisChenu 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.
 
Or disable answer persistance (best for different people) and allow any number of response.

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.

Lime-years ahead

Online-surveys for every purse and purpose