Survey on the fly

More
3 years 9 months ago #117257 by sxmfranck
sxmfranck created the topic: Survey on the fly
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!

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #117265 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #117266 by sxmfranck
sxmfranck replied the 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

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #117267 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #117268 by sxmfranck
sxmfranck replied the 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

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #117287 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #117308 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!