Check out the LimeSurvey source code on GitHub!

Filter on Token Attributes

3 years 3 months ago #101310 by rossokr
My question focuses on reporting in LimeSurvey. Is there a way to filter report statistics based on the value of a 'custom' token field for a particular participant?
For example, I send out a education-based survey based on a course. After 6 months, I (using remoteControl API) programmatically add all students that completed the reports as entries in the survey's tokens table with some custom attributes such as course 'section' (there is only one course, but many sections or classes for that course).
Suppose I wanted to get a report for all survey responses from a certain 'section', can I do that in LimeSurvey? I do not see an option in the 'Report and statistics' page where you can filter by token attributes. So it seems although the data is all there, it is not able to be queried. I've attached a picture of what I would imagine this would look like
Please advise if there is a way to accomplish this or if this would need to be a new feature?

Please Log in to join the conversation.

2 years 8 months ago #109388 by jalpesh
I have a same problem... did you find a solution??

Please Log in to join the conversation.

2 years 8 months ago #109406 by rossokr
Not really. The option we went with is that we can query by timestamp. So as long as we select the 'response timestamp' option when creating a new survey, we can at least query a smaller range of responses based on when the particular course iteration took place. The other option was modifying the query code to accept a certain token attribute as a parameter into the query.

Please Log in to join the conversation.

2 years 8 months ago #109430 by DenisChenu

1st option : put the TOKAN attribute in an hidden question with an Equation question type ({QTEXT=TOKEN:ATTRIBUTE_1} for example)
2nd option : Make a feature request
3rd option : contact a dev to have a quote for a new feature


Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form