Welcome to the LimeSurvey Community Forum

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

Survey on the fly

  • sxmfranck
  • sxmfranck's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months ago #117257 by sxmfranck
Survey on the fly was created by sxmfranck
Hello

Can I do this with Lime Survey : create a survey on the fly ?

I have a database, for each client a list of activities they have participated among a long list.

I would like to link that database and create on the fly a specific survey for each client, with only the activities they were involved.

Thanks for ou help!
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #117265 by holch
Replied by holch on topic Survey on the fly
I am not really sure what you mean with "survey on the fly".

You could use custom attributes in the token system to tell Limesurvey which questions should be shown or not to each client.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • sxmfranck
  • sxmfranck's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months ago #117266 by sxmfranck
Replied by sxmfranck on topic Survey on the fly
Hi
I meant that I have a database with clients, each client has got a set of items
Client 1: item1, item4, item7
Client 2: item2, item4

Survey for client 1 will b satisfaction questions only of the items 1 4 7

Clients and items are stored in a myself db
Then if client 1 selected, only questions with items 1 4 7
Will be build
Hope it is clear? Thanks
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #117267 by holch
Replied by holch on topic Survey on the fly
Well, I am not sure if you can do this. The simplest solution is adding the items as custom attributes to the token table and then use expressions to show or hide the respective questions, based on the custom attributes.

Another option might be an Ajax call to your database and base the conditions/expressions on the result.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • sxmfranck
  • sxmfranck's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months ago #117268 by sxmfranck
Replied by sxmfranck on topic Survey on the fly
thank you for your valuable info
you mean it can be possible to add the selected items of a given client to a table, so that the survey that the client will be getting only those items

from our mysql database, for each client we have a list of selected items
this is given to limesurvey through a table to create the specific survey, atumatically through API

is that correct ?

this table and its AP can be found in the doc ?

sorry for those basic questions, just starting, and want to be sure it is feasible.

thank you

thanks
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #117287 by holch
Replied by holch on topic Survey on the fly
Have a look at the token system for limesurvey: manual.limesurvey.org/Tokens

Tokens allow you to upload a csv file with information about the respondent and send them an individual link. Besides the default columns like name, email, etc. you can create your own attributes.

Have a special look at the paragraphs "User-defined attribute fields" and "Importing/exporting tokens". However, the upload of this table to Limesurvey is done manually. I am not sure if the API can do this, you would need to research this.

So what you can do is create a custom attribute for each of your items and mark for each respondent whether a specific item is relevant for this specific respondent.

Then in the survey you can use relevance equations to show or hide questions or question groups, by checking the custom attributes. As far as I know, you can use these custom attributes with the expression manager, as long as the survey is not anonymous (obviously).

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #117308 by DenisChenu
Replied by DenisChenu on topic Survey on the fly
Alternative solution is to use
Prefilling survey answers using the survey URL
manual.limesurvey.org/Workarounds:_Surve...using_the_survey_URL

And use some question prefilled to filter some group.

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

Lime-years ahead

Online-surveys for every purse and purpose