Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Adding newtest=Y to survey link in invitation

  • wahoowa
  • wahoowa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago #203954 by wahoowa
Hi all,


after reading about the advantages of the parameter newtest=Y for the survey-URL, I would like to add it in the inivitation link.
I have tried it by simply adding the parameter behind the expression {SURVEYURL} and then formatting it to a link

(<a href="{SURVEYURL}&amp;NEWTEST=Y">{SURVEYURL}&NEWTEST=Y</a>)

However, the parameter NEWTEST=Y is not included in the URL.


Does somebody know how I could implement this?

Thank you in advance!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #203957 by Joffm
In my opinion you should not include it in the invitation link.
If it is a closed survey the participant may interrupt answering the questionnaire and later proceeding by clicking the link again.
If there is a "newtest=Y" he will start at the beginning, not at the question where he interrupted.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago - 3 years 8 months ago #203967 by tpartner
Replied by tpartner on topic Adding newtest=Y to survey link in invitation
Although I mostly agree with Joffm, there may be scenarios where you want to use it.

The {SURVEYURL} is rendered as a hyperlink so cannot be modified.

The @@SURVEYURL@@ placeholder renders the raw URL.

Code:
<a href="@@SURVEYURL@@&amp;newtest=Y">@@SURVEYURL@@&amp;newtest=Y</a>

(note that "newtest" is lower-case)

More on email placeholders - manual.limesurvey.org/Email_templates#Email_placeholders

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 3 years 8 months ago by tpartner.
The topic has been locked.
  • wahoowa
  • wahoowa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago #204012 by wahoowa
Replied by wahoowa on topic Adding newtest=Y to survey link in invitation
Thank you both for your answers!
The solutin from tpartner works.

@Joffm: We have been testing our surveys with the parameter newtest=Y with interruptions and we were able to open the survey at the point where we left it, even if we opend the surveyurl on a different device.

As I understood it, newtest forces limesurvey to open a new session, meaning that only if we added a new questions/changed something in the survey, the participant has to start over.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose