Welcome to the LimeSurvey Community Forum

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

Create and submit a form on the endpage

  • steve_81
  • steve_81's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 6 months ago #112015 by steve_81
Create and submit a form on the endpage was created by steve_81
Hello everyone,

i would like to insert a javascript form on the endpage, where the participant can insert his contact details to get the results of the studie later. It would not be a good idea to store these "answers" in the database because this would be a failure for the anonymity.

My procedure till now:
- javascript in the "end message" field:
... [creating the form] ...
... $.get("sendform.php") ... //to execute the programmed php file

- sendform.php:
mail(
"some@you.com",
"Test",
"Message"
) or die("Unable to send mail.")

If I call the sendform.php I get the die-message. Here I stuck.
May it be possible, that I have to include the smtp setting? How can I do this?

Other ideas are welcome.

Kind regards
Stefan
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #112050 by tpartner
Replied by tpartner on topic Create and submit a form on the endpage
I'm sorry, that's not a LimeSurvey issue.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • c_schmitz
  • c_schmitz's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
9 years 6 months ago - 9 years 6 months ago #112051 by c_schmitz
Replied by c_schmitz on topic Create and submit a form on the endpage
Hi,

why don't you do a second one page survey at the end of the first by automatically loading the End URL?

Best regards

Carsten Schmitz
LimeSurvey project leader
Last edit: 9 years 6 months ago by c_schmitz.
The topic has been locked.
  • steve_81
  • steve_81's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 6 months ago - 9 years 6 months ago #112102 by steve_81
Replied by steve_81 on topic Create and submit a form on the endpage
That's a quite good idea and a workable solution for me. I missed the forest by the java-trees. Thanks.

Only the fact that the link of the second survey is known by the participant and can be spread to others. So someone can enter the "I would like to have the results of the study" even then he didn't participated.
But that's okay for this scenario.
Last edit: 9 years 6 months ago by steve_81.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose