Welcome to the LimeSurvey Community Forum

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

Prefilled question from url parameter based on token data in anonymous survey

  • ali123456789
  • ali123456789's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 10 months ago #241923 by ali123456789
Your LimeSurvey version: Version 3.28.48+230207
Own server or LimeSurvey hosting: Own server
Survey theme/template: Monochrome template
==================
Dear all,

I want to conduct an anonymous survey on the team level. That is, people within teams are anonymous, but their team membership is not. I understand that I cannot save data from the particiants table (via {token:}) in an anonymous survey. In a previous post ( forums.limesurvey.org/index.php/forum/ca...ymous-survey?start=0 ) someone mentioned a workaround via an URL-parameter.

Question: Is it possible to add an URL-parameter based on one variable from the participant data (attribute_1 = team membership) to the individual survey link that is generated by inviting participants via limesurvey in an anonymous survey and to save this value from the URL in the survey response data? How?

Best,
Ali

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 9 months ago #242003 by DenisChenu
Yes : construct you url like this

@@SUREYURL@@&questioncode={TOKEN:ATTRIBUTE_1} (or @@SUREYURL@@?questioncode={TOKEN:ATTRIBUTE_1})

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • ali123456789
  • ali123456789's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago #242422 by ali123456789
Thank you. The link now contains the variable. However, I struggle to save the link value in the data. I tried unsuccessfully:

- an equation variable (titled ass1) containing {questioncode} and another time {TOKEN:ATTRIBUTE_1} in the question section
- an empty equation variable with title questioncode
- an equation variable with title questioncode and {questioncode} in the question section
- a long free text variable with title questioncode
- a panel integration variable titled questioncode referring to long free text variable questioncode

I'm out of ideas. How can I save that value?
Help is highly appreciated!

Best,
Ali

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 9 months ago #242426 by tpartner
Give us an example of your full URL (obscuring the domain).

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: ali123456789

Please Log in to join the conversation.

  • ali123456789
  • ali123456789's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago #242427 by ali123456789
[domain]/index.php/[survey-project]?token=ojjK53jiaWzAVnJ&lang=de&questioncode=NL1

"NL1" should be saved in the survey data.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 9 months ago #242434 by DenisChenu

- a long free text variable with title questioncode

 
Must work
www.limesurvey.org/manual/URL_fields#Pre...using_GET_parameters
 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: ali123456789

Please Log in to join the conversation.

  • ali123456789
  • ali123456789's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago #242443 by ali123456789
Found the error: The relevance equation was set to one language only (the default one). Once setting it to 1, it works. Thanks so much and sorry for my sloppyness.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 9 months ago - 1 year 9 months ago #242444 by DenisChenu

Found the error: The relevance equation was set to one language only (the default one). Once setting it to 1, it works. Thanks so much and sorry for my sloppyness.

 
What ? There are different relevance equation by language in question in 6.X ?
 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 1 year 9 months ago by DenisChenu.

Please Log in to join the conversation.

  • ali123456789
  • ali123456789's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 9 months ago #242449 by ali123456789
No, the relevance equation was set to lang=de instead of 1. This caused the problem in saving the value despite using language de.

Again, thanks for you help!
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose