Welcome to the LimeSurvey Community Forum

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

Probs with pre-select

More
4 years 1 month ago - 4 years 1 month ago #218173 by svenjalell
Hi all,

lately I've created a survey, the participants can only access with a token. The url is similar to
 
example.org/index.php/123456?token=moinmoin&lang=de

Now I want to to preseelect the first the answer to the first question, which is a single request according to

www.limesurvey.org/manual/URL_fields (you may search for " ls.example.org/1234?1234X1X1SQ001=A1 " )

So I tried the following:

example.org/index.php/123456?token=moinm...=de&123456X22X3F0=A1

For question data please see Attachments.


However it never worked.

Can you get me started here ?

Moreover I'd like to know wether to read by Expression script and create a condition like say
if tokenstring startswith "t" let the answer to  singleselectquestion F0 = A1. possible ? or similar ?


Thanks for your feedback!


Best,
Svenja
Last edit: 4 years 1 month ago by DenisChenu. Reason: Usage of example.org !
The topic has been locked.
More
4 years 1 month ago - 4 years 1 month ago #218180 by tpartner
Replied by tpartner on topic Probs with pre-select
Regarding the first question, you need to use either the SGQA OR the question code. You have mixed them together.


Code:
https://example.org/index.php/123456?token=moinmoin&lang=de&123456X3X22=A1
OR
[code]https://example.org/index.php/123456?token=moinmoin&lang=de&F0=A1
 
Regarding the second question, yes, you can set the question via the ExpressionScript assignment operator in an equation type question - https://www.limesurvey.org/manual/ExpressionScript_-_Presentation#Caution_about_using_Assignment_Operator_.28.3D.29
[/code]

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 1 month ago by tpartner.
The topic has been locked.
More
4 years 1 month ago #218203 by svenjalell
Replied by svenjalell on topic Probs with pre-select
Hi,
this is very helpful...
Basically we have distinct subgroups. We want to present them the same questionaire and distinguishing between different subgroups of participants in the background. So they should not see which group they belong to.

My idea was to create a questionaire-url that has a parameter which preselects a value in a question that refers to the subgroup. With the parameter I mentioned in the first posting it already works (thanks for your help btw!). The prob is, that if we hide the question in the lime survey backend it never gets any values.

Can you show me a way how to assign the participants to a group invisibly to them ?

Thanks!

Best,
Svenja
The topic has been locked.
More
4 years 1 month ago #218204 by DenisChenu
Replied by DenisChenu on topic Probs with pre-select
I don't understand : how you know group ?
If you know group when create token : why not use Token attribute ?

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 topic has been locked.
More
4 years 1 month ago - 4 years 1 month ago #218207 by svenjalell
Replied by svenjalell on topic Probs with pre-select
Hi,

we know the group when create token. But we want to offer a similar link to everyone like for instance:
example.org/index.php/123456?token=moinmoin&lang=de

But this would lead to resultset, where each line would represent a participation trial. How can we know, to which group we can assign each trial ?

Sorry for the questions we are right at the beginning... Maybe we need a different way...
Last edit: 4 years 1 month ago by svenjalell.
The topic has been locked.
More
4 years 1 month ago #218210 by tpartner
Replied by tpartner on topic Probs with pre-select

The prob is, that if we hide the question in the lime survey backend it never gets any values.

Hiding the question should not matter. What LS version are you using? How are you hiding the question?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
4 years 1 month ago #218214 by DenisChenu
Replied by DenisChenu on topic Probs with pre-select

Hi,

we know the group when create token. But we want to offer a similar link to everyone like for instance:
example.org/index.php/123456?token=moinmoin&lang=de

 
I still don't understand ?

You want to use token or not ? You want to use same token for all user ?

And again : Why not use participant attribute ?
 

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 topic has been locked.
More
4 years 1 month ago #218222 by svenjalell
Replied by svenjalell on topic Probs with pre-select
Hi,
yes we want to use tokens. Each user receives his own token.

... not sure how to deal with the participant attribute and where to find it ... sorry...
The topic has been locked.
More
4 years 1 month ago #218223 by svenjalell
Replied by svenjalell on topic Probs with pre-select
Hi,
... managed to hide a question via the custom.css of the theme... works for me.
The topic has been locked.
More
4 years 1 month ago #218224 by DenisChenu
Replied by DenisChenu on topic Probs with pre-select

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 topic has been locked.
More
4 years 1 month ago #218231 by svenjalell
Replied by svenjalell on topic Probs with pre-select
Hi Denis,
thx a lot...
... came across this also... but this does not work for anonymous polls? Is it possible to put the to put the token in the result matrix ? So with the token added in each line you may see which group the participant belongs ?

Best,
Svenja
The topic has been locked.
More
4 years 1 month ago #218232 by DenisChenu
Replied by DenisChenu on topic Probs with pre-select
OK,
Right : no way with anonymous survey.

You can use it in email (to add the Q01={ATTRIBUTE_1}) for example.

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 topic has been locked.
More
4 years 1 month ago #218236 by svenjalell
Replied by svenjalell on topic Probs with pre-select
ok thanks ...
... so it isn't possible to write the token somewhere in the resultset of a participation ? say, as the value of a hidden text field ?

Best,
Svenja
The topic has been locked.
More
4 years 1 month ago - 4 years 1 month ago #218237 by holch
Replied by holch on topic Probs with pre-select
No, this would break anonymity. You need to choose: either you want an anonymous survey (as technically defined in Limesurvey) or you want to be able to pass attributes.

Because even if you would only use attributes that can not identify the respondent, if Limesurvey would offer the option, then the anonymous mode couldn't be considered anonymous anymore.

Even passing attributes/variables via the link is dodgy (in my opinion), when talking about "technically anonymous" surveys.

What we often do in market research is to promise that the data will be analyzed anonymously, while there is still an option to connect respondents' data with responses (e.g. for inviting them to a follow-up research project, to provide incentives/raffles, quality control, etc.).

In this case the anonymity is not based on technology, but rather based on research ethics. We promise to not analyze data together with personal information. After a while the personal information is disconnected from research data and later also deleted, when we are sure we don't need it anymore.

Now if you want or need to guarantee 100% anonymity based on technology, then you can't pass data from the token table to the response table or the survey, but I also think you shouldn't pass any variables via the survey link. In your case the data you pass might not break anonymity, but respondents don't know this. The variable you pass on could stand for anything (e.g. be an ID), etc.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Last edit: 4 years 1 month ago by holch.
The topic has been locked.
More
4 years 1 month ago #218238 by DenisChenu
Replied by DenisChenu on topic Probs with pre-select

Even passing attributes/variables via the link is doggy in my opinion, when talking about "technically anonymous" surveys.

Yes +1

What we do in market research often is to promise that the data will be analyzed anonymously, while there is still an option to connect respondents data with responses (e.g. for inviting them to a followup research project, to provide incentives/raffles, quality control, etc.). 
hhh

So !

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 topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose