Welcome to the LimeSurvey Community Forum

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

insert user data after completed survey

  • locotay
  • locotay's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #145519 by locotay
aye folks! i'm back again with another question.
this probably has been answered before but i couldn't find one – maybe i'm just dumb tho.

is it possible to insert the userdata after the survey is completed? for example: the participant answers all questions and got like 92 out of 100 points. can i display a form within or after the end message to insert a name and adress together with the achieved amount of points?

best regards
~ loco
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145537 by tpartner
Replied by tpartner on topic insert user data after completed survey
You cannot add data after submitting the survey. Place the "form" in the last group (page) of the survey.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145545 by DenisChenu
Replied by DenisChenu on topic insert user data after completed survey

tpartner wrote: You cannot add data after submitting the survey.

NOt totally true :). Plugin can do that and thinks it's more easy to generate the form when 3.0 have form.pstpl.

Tricky , but can be done with afertSurveySubmit event.

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.
  • locotay
  • locotay's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago - 7 years 3 months ago #145567 by locotay
Replied by locotay on topic insert user data after completed survey
hmm. i definietly need an easy way to do it bc the people who are supposed to work with limesurvey in the end have no idea how to code their own workarounds.
is it possible to have some sort of relevance equation with the assessment value to create an evaluation?
Last edit: 7 years 3 months ago by locotay.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145573 by Joffm
Replied by Joffm on topic insert user data after completed survey
Hi, locotay,
because I am on the same level as your people, I'd also try an easy way.

And now to confirm: You just want to show the result of their survey after they completed it.
You do not want to follow Tony's advise to display this result on the last page before sending and completing the survey.
IMO the only danger is that respondents who see a bad result just close the browser or leave the survey.

Why not do it in the confirmation email.
Here you can enter all user data. And you can style it nicely.
And more: Maybe you can create a report which is attached to the confirmation email.

Just an idea.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • locotay
  • locotay's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago - 7 years 3 months ago #145581 by locotay
Replied by locotay on topic insert user data after completed survey
since there is an 'answer' after every question telling the user if his answer was correct or not they should already know the result anyways. it's just some kind of a reminder for the user i guess. therefore this shouldn't be that big of an issue.

the survey i'm currently working on is supposed to be a lottery-kind-of-thingy. thats why i need to collect names and mail-adresses at the end of the whole thing because we don't want to force the user to create a profile beforehand.
Last edit: 7 years 3 months ago by locotay.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145593 by tpartner
Replied by tpartner on topic insert user data after completed survey
You can use Expression Manager to generate, store and display "scores". See this post with a working sample survey that does that (ignore the stuff about sorting the scores) - www.limesurvey.org/forum/can-i-do-this-w...ssment-output#144654

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • locotay
  • locotay's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #145644 by locotay
Replied by locotay on topic insert user data after completed survey
aye. this seeme to work out. (:
thank you very much for all the support!
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145647 by DenisChenu
Replied by DenisChenu on topic insert user data after completed survey

locotay wrote: ...
the survey i'm currently working on is supposed to be a lottery-kind-of-thingy. thats why i need to collect names and mail-adresses at the end of the whole thing because we don't want to force the user to create a profile beforehand.

Why not use an end url where you thanks the user and put a simple PHP form ?

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.
  • locotay
  • locotay's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago - 7 years 3 months ago #145651 by locotay
Replied by locotay on topic insert user data after completed survey
I thought about that aswell – definietly the easiest way. But i have no idea how i could link the inerted data to the corresponding answers. tbh.. i'm a pleb when it comes to php coding.
Last edit: 7 years 3 months ago by locotay.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145720 by DenisChenu
Replied by DenisChenu on topic insert user data after completed survey
Hi, you ncan use {SAVEDID} in your endurl, and after get the information directly from the DB.

Alternative :
- Create a second survey,
- One page survey
- Welcome page : 'it's really great you answer to our survey ....'
- Hidden short text question : 'oldid'
- Your question,

ANd your endurl is something like that:
example.org/index.php/13565?oldid={SAVEDID}

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